zsh: add zshrc.d
This commit is contained in:
14
zshrc.d/keybindings.zsh
Normal file
14
zshrc.d/keybindings.zsh
Normal file
@@ -0,0 +1,14 @@
|
||||
# emacs mode
|
||||
bindkey -e
|
||||
|
||||
bindkey '^[[H' beginning-of-line
|
||||
bindkey '^[[F' end-of-line
|
||||
|
||||
# Even though 'showkey -a' gives the mappings above, these are required when using
|
||||
# MobaXterm at least (and possibly plain putty). NO idea why.
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/issues/4872 for speculation...
|
||||
bindkey "\033[1~" beginning-of-line
|
||||
bindkey "\033[4~" end-of-line
|
||||
|
||||
bindkey '^[[1;5D' backward-word
|
||||
bindkey '^[[1;5C' forward-word
|
||||
Reference in New Issue
Block a user