Commit 282240bf authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Account for iTerm2 sent keys in dircycle plugin

parent 999bab18
......@@ -26,5 +26,12 @@ 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
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment