mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
dircycle: remove redundant key bindings
In bindkey strings, "^[" and "\e" mean the same thing. They're both notations for Escape.
This commit is contained in:
parent
135c3763cc
commit
c8e280f2ab
1 changed files with 8 additions and 8 deletions
|
@ -27,11 +27,11 @@ insert-cycledright () {
|
||||||
zle -N insert-cycledright
|
zle -N insert-cycledright
|
||||||
|
|
||||||
|
|
||||||
# add key bindings for iTerm2
|
# These sequences work for xterm, Apple Terminal.app, and probably others.
|
||||||
if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
# Not for rxvt-unicode, but it doesn't seem differentiate Ctrl-Shift-Arrow
|
||||||
bindkey "^[[1;6D" insert-cycledleft
|
# from plain Shift-Arrow, at least by default.
|
||||||
bindkey "^[[1;6C" insert-cycledright
|
# iTerm2 does not have these key combinations defined by default; you will need
|
||||||
else
|
# to add them under "Keys" in your profile if you want to use this. You can do
|
||||||
bindkey "\e[1;6D" insert-cycledleft
|
# this conveniently by loading the "xterm with Numeric Keypad" preset.
|
||||||
bindkey "\e[1;6C" insert-cycledright
|
bindkey "\e[1;6D" insert-cycledleft
|
||||||
fi
|
bindkey "\e[1;6C" insert-cycledright
|
||||||
|
|
Loading…
Reference in a new issue