2015-12-15 06:12:17 +01:00
|
|
|
|
#
|
|
|
|
|
# Directory navigation options
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Navigation
|
|
|
|
|
#
|
|
|
|
|
|
2016-12-24 18:35:55 +01:00
|
|
|
|
# If a command is issued that can’t be executed as a normal command,
|
2015-12-15 06:12:17 +01:00
|
|
|
|
# and the command is the name of a directory, perform the cd command to that directory.
|
|
|
|
|
setopt AUTO_CD
|
|
|
|
|
|
|
|
|
|
# Make cd push the old directory onto the directory stack.
|
|
|
|
|
setopt AUTO_PUSHD
|
|
|
|
|
|
|
|
|
|
# Don’t push multiple copies of the same directory onto the directory stack.
|
|
|
|
|
setopt PUSHD_IGNORE_DUPS
|
|
|
|
|
|
|
|
|
|
# Do not print the directory stack after pushd or popd.
|
|
|
|
|
setopt PUSHD_SILENT
|
|
|
|
|
|
2015-12-19 15:48:29 +01:00
|
|
|
|
# Have pushd with no arguments act like ‘pushd ${HOME}’.
|
2015-12-15 06:12:17 +01:00
|
|
|
|
setopt PUSHD_TO_HOME
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Globbing and fds
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# Treat the ‘#’, ‘~’ and ‘^’ characters as part of patterns for filename generation, etc.
|
|
|
|
|
# (An initial unquoted ‘~’ always produces named directory expansion.)
|
|
|
|
|
setopt EXTENDED_GLOB
|
|
|
|
|
|
|
|
|
|
# Perform implicit tees or cats when multiple redirections are attempted.
|
|
|
|
|
setopt MULTIOS
|
|
|
|
|
|
2016-12-24 18:35:55 +01:00
|
|
|
|
# Disallow ‘>’ redirection to overwrite existing files.
|
|
|
|
|
# ‘>|’ or ‘>!’ must be used to overwrite a file.
|
|
|
|
|
setopt NO_CLOBBER
|