]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Add directory stack settings.
authorSimon Ruderich <simon@ruderich.org>
Fri, 12 Aug 2011 15:38:27 +0000 (17:38 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 12 Aug 2011 16:07:06 +0000 (18:07 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index aafa2d343aa98d4ad320ba702c9c750a5bc7ce0a..f82abc75268ba2332901abcf196f5477e7c1a60d 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -140,6 +140,15 @@ bindkey -a '^P' history-beginning-search-backward # binding for Vi-mode
 # after calling ^P.
 bindkey -a '^N' history-beginning-search-forward
 
+# Automatically push cd-ed directories on the directory stack.
+setopt autopushd
+# Don't push duplicates on the directory stack.
+setopt pushdignoredups
+# Exchange the meaning of + and - when specifying a directory on the stack.
+# This way cd -<Tab> lists the last used directory first, which is more
+# natural because cd - goes to the last directory.
+setopt pushdminus
+
 
 # PROMPT SETTINGS