I know there is an elaborate sequence of config files that BASH reads sequentially (or alternatively skips if a particular one is present), however I have for the most part adopted ZSH as my default shell. I have tended to mainly edit my ~/.zshrc for everything but I am wondering if I should be editing other files as well.

BTW I am often logging in to a non-graphical login shell on some machines so is there a different sequence for login ZSH sessions vs interactive ones?


This is documented extensively in the STARTUP/SHUTDOWN FILES section of the zsh man page.

  • It is also a prime example of man pages at their most cryptic. Not even referring to actual files but to environmental variable values. I can print out the env variable values but was hoping for practical experience with what people do. – haziz Dec 10 '12 at 15:05
  • 1
    The only environment variable used in that section is $ZDOTDIR, and the default value for that is explained right there. Your question didn't ask for practical experience, only what the sequence is. – qqx Dec 10 '12 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.