From 944edc4385e8aad92e18fabc7ff0ba24f42ea9b7 Mon Sep 17 00:00:00 2001 From: ene Date: Wed, 15 Feb 2023 18:23:49 +0100 Subject: Feat(home-manager): Add zsh --- services/zsh/custom_cursor.sh | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 services/zsh/custom_cursor.sh (limited to 'services/zsh/custom_cursor.sh') diff --git a/services/zsh/custom_cursor.sh b/services/zsh/custom_cursor.sh deleted file mode 100644 index 9a6da012..00000000 --- a/services/zsh/custom_cursor.sh +++ /dev/null @@ -1,40 +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 -} -zle -N zle-keymap-select - -# ci", ci', ci`, di", etc -autoload -U select-quoted -zle -N select-quoted -for m in visual viopp; do - for c in {a,i}{\',\",\`}; do - bindkey -M $m $c select-quoted - done -done - -# ci{, ci(, ci<, di{, etc -autoload -U select-bracketed -zle -N select-bracketed -for m in visual viopp; do - for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do - bindkey -M $m $c select-bracketed - done -done - -zle-line-init() { - zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) - echo -ne "\e[5 q" -} -zle -N zle-line-init - -echo -ne '\e[5 q' # Use beam shape cursor on startup. -precmd() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. -- cgit 1.4.1