]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Add directory stack settings.
[config/dotfiles.git] / 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