mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
fix zsh inputrc management
This commit is contained in:
parent
2c41486bca
commit
0d2975dfa4
2 changed files with 5 additions and 17 deletions
4
inputrc
4
inputrc
|
|
@ -47,5 +47,5 @@ set completion-ignore-case on
|
||||||
"\e[5C": end-of-line
|
"\e[5C": end-of-line
|
||||||
|
|
||||||
# Option+left/right on Terminal.app
|
# Option+left/right on Terminal.app
|
||||||
"\ef":forward-word
|
"\ef": forward-word
|
||||||
"\eb":backward-word
|
"\eb": backward-word
|
||||||
|
|
|
||||||
18
zshrc
18
zshrc
|
|
@ -26,22 +26,10 @@ chpwd # call in right now
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|
||||||
# bind special keys according to readline configuration
|
# bind special keys according to readline configuration
|
||||||
eval "$(sed -n 's/^/bindkey /; s/: / /p' ~/.inputrc)"
|
eval "$(sed -n 's/#.*//; s/^/bindkey /; s/: / /p' ~/.inputrc)"
|
||||||
|
|
||||||
# fix some keys
|
# bind some more keys, zsh only
|
||||||
#bindkey "\e[1~" beginning-of-line # Home
|
bindkey "\e[Z" reverse-menu-complete # Shift+Tab
|
||||||
#bindkey "\e[4~" end-of-line # End
|
|
||||||
#bindkey "\e[5~" beginning-of-history # PageUp
|
|
||||||
#bindkey "\e[6~" end-of-history # PageDown
|
|
||||||
#bindkey "\e[2~" quoted-insert # Ins
|
|
||||||
#bindkey "\e[3~" delete-char # Del
|
|
||||||
#bindkey "\e[5C" forward-word #
|
|
||||||
#bindkey "\eOc" emacs-forward-word # ^Right
|
|
||||||
#bindkey "\e[5D" backward-word #
|
|
||||||
#bindkey "\eOd" emacs-backward-word # ^Left
|
|
||||||
#bindkey "\e\e[C" forward-word #
|
|
||||||
#bindkey "\e\e[D" backward-word #
|
|
||||||
#bindkey "\e[Z" reverse-menu-complete # Shift+Tab
|
|
||||||
|
|
||||||
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
|
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue