Skip to content

jhzn/purs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purs

A Pure-inspired prompt in Rust.

Even more minimal, definitively faster and at least as pretty as the original Pure by Sindre Sohrus.

Fork of https://github.com/xcambar/purs to suit my tastes :)

Screenshot of Purs in action

Installation — Usage

  1. $ cargo build --release
  2. Add the following to your ZSH configuration:
function zle-line-init zle-keymap-select {
  PROMPT=`/PATH/TO/PURS/target/release/purs prompt -k "$KEYMAP" -r "$?" --venv "${${VIRTUAL_ENV:t}%-*}"`
  zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select

autoload -Uz add-zsh-hook

function _prompt_purs_precmd() {
  /PATH/TO/PURS/target/release/purs precmd
}
add-zsh-hook precmd _prompt_purs_precmd

License

MIT, see LICENSE file.

About

A Pure-inspired prompt in Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%