unix.profile

Unable to source .profile without .zshrc


I have the following lines in my .zshrc

source /etc/profile    
source $HOME/.profile

My .profile is not loaded without them, although .profile should be loaded by default in Unix systems.

How can you load .profile without sourcing it at .zshrc?


Solution

  • Look in the Zsh manual where it says to use ~/.zprofile instead of ~/.profile.