From 5bf4dedea3cd30b726e80ac9c8f0f36bbb017e0f Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 15 Aug 2022 11:36:35 -0400 Subject: avoid custom keybindings from getting overridden in zsh --- dot_zshrc.tmpl | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'dot_zshrc.tmpl') diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index b586c04..8319d68 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -169,6 +169,20 @@ autoload -U compinit; compinit compdef _quilt dquilt=quilt # Quilt tab completion for dquilt +## Key bindings +# You may use: +# % autoload -U zkbd +# % zkbd +# to discover your keys. + + +typeset -U fpath + +# Actually, stick with emacs for the moment. The vi keymap just doesn't +# seem to be as complete (even if it's nicer for editing, there's no +# execute-named-cmd bound, for example). +bindkey -e # Emacs keybindings. + # pattern history search bindkey '^R' history-incremental-pattern-search-backward @@ -321,19 +335,7 @@ if [ -f $HISTFILE ]; then fc -RI $HISTFILE fi -## Key bindings -# You may use: -# % autoload -U zkbd -# % zkbd -# to discover your keys. - -typeset -U fpath - -# Actually, stick with emacs for the moment. The vi keymap just doesn't -# seem to be as complete (even if it's nicer for editing, there's no -# execute-named-cmd bound, for example). -bindkey -e # Emacs keybindings. # This function sets the window tile to user@host:/workingdir before each # prompt. If you're using screen, it sets the window title (works -- cgit v1.2.3