Skip to content

Commit

Permalink
Merge pull request #980 from vmalloc/dircycle_plugin
Browse files Browse the repository at this point in the history
Add dircycle plugin: enables cycling through the directory stack
  • Loading branch information
robbyrussell committed Jun 13, 2012
2 parents 38d537f + f8802bd commit e3d426d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/dircycle/dircycle.plugin.zsh
@@ -0,0 +1,10 @@
##
# dircycle plugin: enables cycling through the directory
# stack using Ctrl+Shift+Left/Right

eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q +1'; zle accept-line }"
zle -N insert-cycledleft
bindkey "\e[1;6D" insert-cycledleft
eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q -0'; zle accept-line }"
zle -N insert-cycledright
bindkey "\e[1;6C" insert-cycledright

0 comments on commit e3d426d

Please sign in to comment.