1 unstable release
Uses old Rust 2015
0.1.0 | Aug 16, 2018 |
---|
#50 in #zsh
16KB
232 lines
Purs
A Pure-inspired prompt in Rust.
Even more minimal, definitively faster and at least as pretty as the original Pure by Sindre Sohrus.
Installation — Usage
- Set up your Rust environment (use a Nightly build)
$ cargo build --release
- 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 "$?"`
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
Why?
- Learn some Rust
- My Pure prompt felt slow on large repos (and indeed, was, compared to Purs)
- Learn some Rust
Questions
- I don't like...?
It's a pet project with wide areas for optimization and enhancement. I'm really open to discussions, PRs a plus.
- Why doesn't it have...?
It's a pet project with wide areas for optimization and enhancement. I'm really open to discussions, PRs a plus.
License
MIT, see LICENSE file.
Dependencies
~14MB
~332K SLoC