summaryrefslogtreecommitdiff
path: root/.config/zsh/purs.zsh
blob: ea2103ab621011566f83dfe9711e6ca52f9d04cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function zle-line-init zle-keymap-select {
  PROMPT=`$HOME/purs/target/release/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() {
  /$HOME/purs/target/release/purs precmd
}
add-zsh-hook precmd _prompt_purs_precmd