commit 968c51c061cb2a1e9393ddb5ff04454b26764a8b parent 5c6e5880591ed02d3c9c582d343b712767d232d3 Author: oscarbenedito <oscar@oscarbenedito.com> Date: Tue, 21 Apr 2020 16:22:53 +0200 Added local bin folder and deleted changing terminal cursors Diffstat:
M | dot_zshenv | | | 3 | +++ |
M | dot_zshrc.tmpl | | | 26 | -------------------------- |
2 files changed, 3 insertions(+), 26 deletions(-)
diff --git a/dot_zshenv b/dot_zshenv @@ -20,3 +20,6 @@ export LESSHISTFILE="-" # Environment variables export VISUAL="nvim" export EDITOR="nvim" + +# Go bin to path +[ -d "$XDG_DATA_HOME/go/bin" ] && export PATH="$XDG_DATA_HOME/go/bin:$PATH" diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl @@ -25,32 +25,6 @@ bindkey -v export KEYTIMEOUT=1 bindkey "^?" backward-delete-char -# 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 - -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 - -# Use beam shape cursor on startup. -echo -ne '\e[5 q' -# Use beam shape cursor for each new prompt. -preexec() { echo -ne '\e[5 q' ;} - # Also set vi keys to navigate the menus when double pressing tab bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'k' vi-up-line-or-history