I have the default PATH
variable as set in the .zshrc
file.
I am looking for an elegant and simple way to add more directories to the PATH
per different profiles in iTerm2.
What would be the best way to do it?
To be concrete, assume I want:
- Add
/Users/myusername/somfolder1
and/Users/myusername/somfolder2/bin
to path ofprofile1
. - Add
/Users/myusername/somfolder3
toprofile2
.
export
just makes the variable available in subshells. For now, just leave it off and see if the PATH get's set as you expect.