diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-04 16:10:28 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-04 16:10:28 -0500 |
commit | 17f618ad9c355a7fdb7eae4d4c9e6462217ca542 (patch) | |
tree | 140ddbfff72858255e4d99745d6fe5f269f38b53 | |
parent | 7ff30175509487dc499424f47c914d37050f3854 (diff) | |
download | dotconfig-17f618ad9c355a7fdb7eae4d4c9e6462217ca542.tar.xz dotconfig-17f618ad9c355a7fdb7eae4d4c9e6462217ca542.zip |
remove -e flag from echo for cursor modes
-rw-r--r-- | zsh/zshrc | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -22,21 +22,21 @@ setopt HIST_IGNORE_SPACE # Entries with leading space ignored # This seems to reduce overall disk writes #unsetopt EXTENDED_HISTORY # Save only the command, not any superfluous info -## Change cursor shape for different vi modes (Cred: LARBS) -#function zle-keymap-select () { -# case $KEYMAP in -# vicmd) echo -ne '\e[1 q';; # block -# viins|main) echo -ne '\e[5 q';; # beam -# esac -#} -#zle -N zle-keymap-select -#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 -#preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt +# Change cursor shape for different vi modes (Cred: LARBS) +function zle-keymap-select () { + case $KEYMAP in + vicmd) echo -n '\e[1 q';; # block + viins|main) echo -n '\e[5 q';; # beam + esac +} +zle -N zle-keymap-select +zle-line-init() { + #zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) + echo -n "\e[5 q" +} +zle -N zle-line-init +echo -n '\e[5 q' # Use beam shape cursor on startup +preexec() { echo -n '\e[5 q' ;} # Use beam shape cursor for each new prompt # Load zsh plugins; should be last #source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh |