home: zsh: add extra mappings

Once again, old habits die hard...
This commit is contained in:
Bruno BELANYI 2021-02-19 21:31:07 +00:00
parent 3787cf4da1
commit 7e4ae50282
2 changed files with 15 additions and 0 deletions

View file

@ -39,6 +39,7 @@
initExtra = lib.concatMapStrings builtins.readFile [
./completion-styles.zsh
./extra-mappings.zsh
./options.zsh
];

View 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