X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/e45b0db3d66ca9e041622db3d801d026fb4d3724..33230b65afa1076218abff057d0bbcc7486af0a8:/.zsh/zshrc/60-directory_stack diff --git a/.zsh/zshrc/60-directory_stack b/.zsh/zshrc/60-directory_stack new file mode 100644 index 0000000..4fa684f --- /dev/null +++ b/.zsh/zshrc/60-directory_stack @@ -0,0 +1,23 @@ +# +# Configure keeping a directory stack +# +# Copyright © 1994–2017 martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: http://git.madduck.net/v/etc/zsh.git +# + +# make cd push the old directory onto the directory stack. +setopt auto_pushd + +# iexchange the meanings of `+' and `-' when used with a number to specify +# a directory in the stack +setopt pushd_minus + +# pushd with no arguments act like `pushd $HOME' +setopt pushd_to_home + +# do not push multiple copies of the same directory onto the directory stack +setopt pushd_ignore_dups + +# vim:ft=zsh