develop#zsh: fix 'jj' bindkey

This commit is contained in:
Timothy DeHerrera 2019-12-15 22:46:11 -07:00
parent ef07773e6c
commit 60ac8ec1ea
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 5 additions and 4 deletions

View File

@ -127,6 +127,9 @@ in
eval "$(${pkgs.direnv}/bin/direnv hook zsh)" eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
eval $(${pkgs.gitAndTools.hub}/bin/hub alias -s) eval $(${pkgs.gitAndTools.hub}/bin/hub alias -s)
source ${pkgs.skim}/share/skim/key-bindings.zsh source ${pkgs.skim}/share/skim/key-bindings.zsh
# needs to remain at bottom so as not to be overwritten
bindkey jj vi-cmd-mode
''; '';
}; };
} }

View File

@ -29,7 +29,8 @@ SAVEHIST=10000
HISTFILE=$HOME/.history HISTFILE=$HOME/.history
DIRSTACKSIZE=5 DIRSTACKSIZE=5
# history substring search keybinds # key binds
bindkey -v '^?' backward-delete-char
bindkey '^[OA' history-substring-search-up bindkey '^[OA' history-substring-search-up
bindkey '^[OB' history-substring-search-down bindkey '^[OB' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'k' history-substring-search-up
@ -59,9 +60,6 @@ zstyle ':completion:*' matcher-list \
# Auto rehash for new binaries # Auto rehash for new binaries
zstyle ':completion:*' rehash true zstyle ':completion:*' rehash true
# Key binds
bindkey "jj" vi-cmd-mode
bindkey -v '^?' backward-delete-char
# remove duplicates from paths # remove duplicates from paths
typeset -U path typeset -U path