home: zsh: add extra mappings
Once again, old habits die hard...
This commit is contained in:
parent
3787cf4da1
commit
7e4ae50282
|
@ -39,6 +39,7 @@
|
|||
|
||||
initExtra = lib.concatMapStrings builtins.readFile [
|
||||
./completion-styles.zsh
|
||||
./extra-mappings.zsh
|
||||
./options.zsh
|
||||
];
|
||||
|
||||
|
|
14
home/zsh/extra-mappings.zsh
Normal file
14
home/zsh/extra-mappings.zsh
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Fix delete key not working
|
||||
bindkey "\e[3~" delete-char
|
||||
|
||||
# Fix Ctrl+u killing from the cursor instead of the whole line
|
||||
bindkey \^U backward-kill-line
|
||||
|
||||
# Use Ctrl+x-(Ctrl+)e to edit the current command line in VISUAL/EDITOR
|
||||
autoload -U edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey '^xe' edit-command-line
|
||||
bindkey '^x^e' edit-command-line
|
||||
|
||||
# Enable Shift-Tab to go backwards in completion list
|
||||
bindkey '^[[Z' reverse-menu-complete
|
Loading…
Reference in a new issue