X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=f82abc75268ba2332901abcf196f5477e7c1a60d;hb=bf112c3be047b2e3849b583dc3c8932e1b38d39d;hp=aafa2d343aa98d4ad320ba702c9c750a5bc7ce0a;hpb=2ad973dea61b86a6c4b671617bd99fe336dba1ab;p=config%2Fdotfiles.git 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