Can't source .profile without .zshrc

I have the following lines in my .zshrc

source /etc/profile    
source $HOME/.profile

      

My .profile won't load without them, although .profile should be loaded by default on Unix systems.

How can you download the .profile without looking for it on the .zshrc?

+1


a source to share


2 answers


Have a look at the Zsh manual which says to use ~/.zprofile

instead ~/.profile

.



+2


a source


In addition to what Martin says about zprofile vs profile, also note that / etc / zprofile and ~ / .zprofile are only read when zsh is started as a login shell. If it is "just" an interactive shell, it will only read .zshrc. So the question is how do you get started with zsh. If you are using something like Gnome Terminal, you can set in your profile settings that the shell should be started as the login shell.



More information: Z-Shell User Guide

+2


a source







All Articles