Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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

share|improve this answer
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
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 posting your answer, you agree to the privacy policy and terms of service.

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