Zsh Commands

Zsh Commands
Zsh Commands

zsh Notes:

autoload -Uz zsh-newuser-install
zsh-newuser-install -f
# Run the new user configuration. It is saved to:

~/.zshrc 
# zsh config file


~./history
# zsh default history location


#---------------------------------------------------
Order in which zsh config files are read on startup:
/etc/zshenv
(RCS option unset, no other configs are read)

~/.zshenv

# If it is a login shell:
/etc/zprofile
~/.zprofile

# If an interactive shell:
/etc/zshrc
~/.zshrc

# If a login shell:
/etc/zlogin
~/.zlogin 
#---------------------------------------------------

# Read in this order on logout:
/etc/zlogout
ZDOTDIR/.zlogout


# Turning on/off options:
setopt option_name
unsetopt option_name

# Alternativley turn off an option with:
setopt NO_option_name
Previous
Next Post »