1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-24 13:12:19 +03:00
digga/pkgs/shells/zsh/purs/init.sh
Timothy DeHerrera 6b26ef84a8
profiles: init develop
setup zshrc
2019-12-14 21:37:46 -07:00

14 lines
325 B
Bash

function zle-line-init zle-keymap-select {
PROMPT=`@PURS@/bin/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() {
@PURS@/bin/purs precmd
}
add-zsh-hook precmd _prompt_purs_precmd