I've started using zsh for my login shell.
I've create an a ~/.zprofile
, but in order for it to be put into effect, I have to manually source it.
How can I have my settings load automatically?
I've started using zsh for my login shell.
I've create an a ~/.zprofile
, but in order for it to be put into effect, I have to manually source it.
How can I have my settings load automatically?
Commands from
~/.zprofile
are only read if the shell is a login shell. Did you set zsh as your default shell usingcshsh
or just in the preferences of the terminal emulator? If the former, logging out and back in should do the trick (although, the file will be only read when you actually perform the login, not when you start a new shell), or you have to tell your terminal emulator to execute the shell as a login shell. If you are usinggnome-terminal
, go toEdit->Profile Preferences
, select theTitle and command
tab and check theRun command as a login shell
box.