From: Simon Ruderich Date: Fri, 12 Aug 2011 15:38:27 +0000 (+0200) Subject: zsh/rc: Add directory stack settings. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=bf112c3be047b2e3849b583dc3c8932e1b38d39d;p=config%2Fdotfiles.git zsh/rc: Add directory stack settings. --- 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