Crates.io | turs |
lib.rs | turs |
version | 0.1.0 |
source | src |
created_at | 2020-02-16 19:01:00.778666 |
updated_at | 2023-10-08 21:52:51.627529 |
description | A Purs-inspired prompt |
homepage | https://github.com/eikendev/turs |
repository | https://github.com/eikendev/turs.git |
max_upload_size | |
id | 209853 |
size | 30,743 |
Turs is a Purs-inspired prompt. I love to keep things simple, and this prompt gives me everything I need.
$ cargo install turs
$PATH
environment variableautoload -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
cargo install turs