From bf112c3be047b2e3849b583dc3c8932e1b38d39d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 12 Aug 2011 17:38:27 +0200 Subject: [PATCH] zsh/rc: Add directory stack settings. --- zsh/rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zsh/rc b/zsh/rc index aafa2d3..f82abc7 100644 --- 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 - lists the last used directory first, which is more +# natural because cd - goes to the last directory. +setopt pushdminus + # PROMPT SETTINGS -- 2.45.2