zsh: re-enable lost keybindings like ctrl+r and ctrl+a
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
# - $ZDOTDIR/.zprofile
|
# - $ZDOTDIR/.zprofile
|
||||||
# - if interactive:
|
# - if interactive:
|
||||||
# - /etc/zshrc
|
# - /etc/zshrc
|
||||||
|
# -> /etc/zinputrc
|
||||||
# - $ZDOTDIR/.zshrc
|
# - $ZDOTDIR/.zshrc
|
||||||
# - if login (again):
|
# - if login (again):
|
||||||
# - /etc/zlogin
|
# - /etc/zlogin
|
||||||
@@ -79,6 +80,18 @@ in
|
|||||||
hash -d tmp="/home/colin/tmp"
|
hash -d tmp="/home/colin/tmp"
|
||||||
hash -d uninsane="/home/colin/dev/uninsane"
|
hash -d uninsane="/home/colin/dev/uninsane"
|
||||||
hash -d Videos="/home/colin/Videos"
|
hash -d Videos="/home/colin/Videos"
|
||||||
|
|
||||||
|
# emulate bash keybindings
|
||||||
|
bindkey -e
|
||||||
|
|
||||||
|
# or manually recreate what i care about...
|
||||||
|
# key[Left]=''${terminfo[kcub1]}
|
||||||
|
# key[Right]=''${terminfo[kcuf1]}
|
||||||
|
# bindkey '^R' history-incremental-search-backward
|
||||||
|
# bindkey '^A' beginning-of-line
|
||||||
|
# bindkey '^E' end-of-line
|
||||||
|
# bindkey "^''${key[Left]}" backward-word
|
||||||
|
# bindkey "^''${key[Right]}" forward-word
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user