Add keybinds to shells
This commit is contained in:
parent
6c93db488c
commit
4594ce53a2
@ -5,6 +5,7 @@ export EWCONFIG_ROOT="$HOME/.config/ewconfig"
|
|||||||
# Load my custom prompt and macros
|
# Load my custom prompt and macros
|
||||||
. $EWCONFIG_ROOT/configs/zsh/prompt.sh
|
. $EWCONFIG_ROOT/configs/zsh/prompt.sh
|
||||||
. $EWCONFIG_ROOT/configs/zsh/macros.sh
|
. $EWCONFIG_ROOT/configs/zsh/macros.sh
|
||||||
|
. $EWCONFIG_ROOT/configs/zsh/keybinds.sh
|
||||||
|
|
||||||
# Load per-host configuration
|
# Load per-host configuration
|
||||||
if [ -f $EWCONFIG_ROOT/configs/zsh/by_host/$HOSTNAME.sh ]; then
|
if [ -f $EWCONFIG_ROOT/configs/zsh/by_host/$HOSTNAME.sh ]; then
|
||||||
|
23
configs/zsh/keybinds.sh
Normal file
23
configs/zsh/keybinds.sh
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
### ctrl+arrows
|
||||||
|
bindkey "\e[1;5C" forward-word
|
||||||
|
bindkey "\e[1;5D" backward-word
|
||||||
|
# urxvt
|
||||||
|
bindkey "\eOc" forward-word
|
||||||
|
bindkey "\eOd" backward-word
|
||||||
|
|
||||||
|
### ctrl+delete
|
||||||
|
bindkey "\e[3;5~" kill-word
|
||||||
|
# urxvt
|
||||||
|
bindkey "\e[3^" kill-word
|
||||||
|
|
||||||
|
### ctrl+backspace
|
||||||
|
bindkey '^H' backward-kill-word
|
||||||
|
|
||||||
|
### ctrl+shift+delete
|
||||||
|
bindkey "\e[3;6~" kill-line
|
||||||
|
# urxvt
|
||||||
|
bindkey "\e[3@" kill-line
|
||||||
|
|
||||||
|
# Home and end
|
||||||
|
bindkey "^[[H" beginning-of-line
|
||||||
|
bindkey "^[[F" end-of-line
|
Loading…
x
Reference in New Issue
Block a user