1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-24 00:21:47 +03:00

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.gitAndTools.hub}/bin/hub alias -s)
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
DIRSTACKSIZE=5
# history substring search keybinds
# key binds
bindkey -v '^?' backward-delete-char
bindkey '^[OA' history-substring-search-up
bindkey '^[OB' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
@ -59,9 +60,6 @@ zstyle ':completion:*' matcher-list \
# Auto rehash for new binaries
zstyle ':completion:*' rehash true
# Key binds
bindkey "jj" vi-cmd-mode
bindkey -v '^?' backward-delete-char
# remove duplicates from paths
typeset -U path