devos/pkgs/shells/zsh/purs/init.sh

14 lines
329 B
Bash
Raw Normal View History

2019-12-15 05:37:46 +01:00
function zle-line-init zle-keymap-select {
PROMPT=`@PURS@/bin/purs prompt -us -k "$KEYMAP" -r "$?" --venv "${${VIRTUAL_ENV:t}%-*}"`
2019-12-15 05:37:46 +01:00
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
autoload -Uz add-zsh-hook
function _prompt_purs_precmd() {
@PURS@/bin/purs precmd
}
add-zsh-hook precmd _prompt_purs_precmd