From 1af1306c2c710ffba80c7c033bcef30a36fba51d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 20 Jun 2021 15:41:20 +0200 Subject: New zsh config inspired by Chris --- .config/zsh/functions.zsh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .config/zsh/functions.zsh (limited to '.config/zsh/functions.zsh') diff --git a/.config/zsh/functions.zsh b/.config/zsh/functions.zsh deleted file mode 100644 index 303e91c..0000000 --- a/.config/zsh/functions.zsh +++ /dev/null @@ -1,29 +0,0 @@ -# Change cursor shape for different vi modes. -function zle-keymap-select { - if [[ ${KEYMAP} == vicmd ]] - [[ $1 = 'block' ]]; then - echo -ne '\e[1 q' - - elif [[ ${KEYMAP} == main ]] - [[ ${KEYMAP} == viins ]] - [[ ${KEYMAP} = '' ]] - [[ $1 = 'beam' ]]; then - echo -ne '\e[5 q' - fi -} - - -# Prompt called purs -function zle-line-init zle-keymap-select { - PROMPT=`$HOME/.local/src/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/.local/src/purs/target/release/purs precmd -} -add-zsh-hook precmd _prompt_purs_precmd -- cgit v1.2.3-70-g09d2