8 releases
0.1.0 | Oct 8, 2023 |
---|---|
0.0.8 | Jul 12, 2022 |
0.0.7 | May 30, 2021 |
0.0.6 | Jan 16, 2021 |
0.0.2 | Feb 16, 2020 |
#618 in Build Utils
24 downloads per month
11KB
183 lines
About
Turs is a Purs-inspired prompt. I love to keep things simple, and this prompt gives me everything I need.
Usage
- Install using
$ cargo install turs
- Add Cargo binaries to your
$PATH
environment variable - Add the following snippet to your ZSH configuration:
autoload -Uz add-zsh-hook
function _prompt_turs_precmd() {
turs precmd
}
function _prompt_turs_prompt() {
PROMPT=`turs prompt -k "$KEYMAP" -r "$?"`
}
function _prompt_turs_rprompt() {
RPROMPT=`turs rprompt`
}
function zle-line-init zle-keymap-select {
_prompt_turs_prompt
_prompt_turs_rprompt
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
_prompt_turs_prompt
_prompt_turs_rprompt
add-zsh-hook precmd _prompt_turs_precmd
Installation
From crates.io
cargo install turs
Dependencies
~14–23MB
~401K SLoC