# Minimal interactive Zsh. Zsh 5.9 on the lab Mac. No plugins.
# Copy to ${ZDOTDIR:-$HOME}/.zshrc. Do not copy it into Bash scripts.

# History stays next to the other dotfiles. A leading space skips one entry.
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
HISTSIZE=50000
SAVEHIST=50000
setopt EXTENDED_HISTORY
setopt SHARE_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt HIST_FCNTL_LOCK
setopt INTERACTIVE_COMMENTS

# Completion dump follows ZDOTDIR so a throwaway lab does not write into $HOME.
autoload -Uz compinit
compinit -d "${ZDOTDIR:-$HOME}/.zcompdump"

# %~ is the directory, shortened with ~. %# is % for a user and # for root.
PROMPT='%F{cyan}%~%f %# '
