Add CTRL+Arrow key, ALT+Arrow key keybinds.
This commit is contained in:
parent
da0b0bc5e9
commit
58c45aa340
1 changed files with 6 additions and 4 deletions
10
.zshrc
10
.zshrc
|
@ -11,10 +11,6 @@ setopt inc_append_history
|
||||||
setopt extended_history
|
setopt extended_history
|
||||||
setopt hist_find_no_dups
|
setopt hist_find_no_dups
|
||||||
|
|
||||||
# enable alt+arrow movements
|
|
||||||
bindkey "^[[1;3D" forward-word
|
|
||||||
bindkey "^[[1;3C" backward-word
|
|
||||||
|
|
||||||
# change word-style
|
# change word-style
|
||||||
autoload -U select-word-style
|
autoload -U select-word-style
|
||||||
select-word-style b
|
select-word-style b
|
||||||
|
@ -23,6 +19,12 @@ select-word-style b
|
||||||
setopt extendedglob
|
setopt extendedglob
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|
||||||
|
# enable alt+arrow movements
|
||||||
|
bindkey "^[[1;3C" forward-word
|
||||||
|
bindkey "^[[1;5C" forward-word
|
||||||
|
bindkey "^[[1;3D" backward-word
|
||||||
|
bindkey "^[[1;5D" backward-word
|
||||||
|
|
||||||
# completions
|
# completions
|
||||||
zstyle :compinstall filename '/home/wzray/.zshrc'
|
zstyle :compinstall filename '/home/wzray/.zshrc'
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue