Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add dircycle plugin: enables cycling through the directory stack

  • Loading branch information...
commit f8802bd61216b7636b9065efe5441479d3e4f7fd 1 parent 1120f97
@vmalloc vmalloc authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 plugins/dircycle/dircycle.plugin.zsh
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.