mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
Account for iTerm2 sent keys in dircycle plugin
This commit is contained in:
parent
999bab187c
commit
282240bf37
1 changed files with 9 additions and 2 deletions
|
@ -26,5 +26,12 @@ insert-cycledright () {
|
||||||
}
|
}
|
||||||
zle -N insert-cycledright
|
zle -N insert-cycledright
|
||||||
|
|
||||||
bindkey "\e[1;6D" insert-cycledleft
|
|
||||||
bindkey "\e[1;6C" insert-cycledright
|
# add key bindings for iTerm2
|
||||||
|
if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
||||||
|
bindkey "^[[1;6D" insert-cycledleft
|
||||||
|
bindkey "^[[1;6C" insert-cycledright
|
||||||
|
else
|
||||||
|
bindkey "\e[1;6D" insert-cycledleft
|
||||||
|
bindkey "\e[1;6C" insert-cycledright
|
||||||
|
fi
|
Loading…
Reference in a new issue