Skip to content

Instantly share code, notes, and snippets.

@nvie
Created March 28, 2012 11:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nvie/2225508 to your computer and use it in GitHub Desktop.
Save nvie/2225508 to your computer and use it in GitHub Desktop.
zsh-sourcing.txt
#
# .zshenv
# .zshenv is the 1st file zsh reads; it's read for every shell, even if
# started with -f (setopt NO_RCS)
# .zprofile
# read after zshenv, if the shell is a login shell
# .zshrc
# read after zprofile, if the shell is an interactive shell
# .zlogin
# read after zshrc, if the shell is a login shell
#
@nvie
Copy link
Author

nvie commented Mar 28, 2012

Stick this at the top of your .zshenv, .zlogin, .zprofile and .zshrc files to remind yourself of the rules while you're editing the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment