Sets sane Zsh built-in environment options.
If HISTFILE is not set, the history is set to be saved in ${ZDOTDIR:-${HOME}}/.zhistory.
The file path can be customized with:
HISTFILE=/path/to/.zsh_history
Some Zsh installations already have a value set for HISTFILE. E.g. the /etc/zshrc
file in macOS sets it to ${ZDOTDIR:-$HOME}/.zsh_history, so you'll have to set
your own value in your ~/.zshrc if you want to customize it.
AUTO_CDperforms cd to a directory if the typed command is invalid, but is a directory.AUTO_PUSHDmakes cd push the old directory to the directory stack.CD_SILENTdoes not print the working directory after a cd.PUSHD_IGNORE_DUPSdoes not push multiple copies of the same directory to the stack.PUSHD_SILENTdoes not print the directory stack after pushd or popd.PUSHD_TO_HOMEhas pushd without arguments act likepushd ${HOME}.
EXTENDED_GLOBtreats#,~, and^as patterns for filename globbing.
HIST_FIND_NO_DUPSdoes not display duplicates when searching the history.HIST_IGNORE_DUPSdoes not enter immediate duplicates into the history.HIST_IGNORE_SPACEremoves commands from the history that begin with a space.HIST_VERIFYdoesn't execute the command directly upon history expansion.SHARE_HISTORYcauses all terminals to share the same history 'session'.
INTERACTIVE_COMMENTSallows comments starting with#in the shell.NO_CLOBBERdisallows>to overwrite existing files. Use>|or>!instead.
LONG_LIST_JOBSlists jobs in verbose format by default.NO_BG_NICEprevents background jobs being given a lower priority.NO_CHECK_JOBSprevents status report of jobs on shell exit.NO_HUPprevents SIGHUP to jobs on shell exit.