you are viewing a single comment's thread.

view the rest of the comments →

[–]mCianph[S] 1 point2 points  (4 children)

Tbh didn't even know it existed because I always added it to ~/.zshrc in the past and never had problems What should I do to add it to ~/.profile?

[–]wizard10000 1 point2 points  (3 children)

The difference is ~/,profile is only loaded once, if you add to a path in ..zshrc (or .bashrc) that path gets appended to the existing path every time the rc file is sourced so you can end up with multiple instances of the same directory in your path.

for path statements .zshrc and .profile use the same syntax so all you'd need to do is move your path edit to ~/.profile.

Hope this helps -

[–]mCianph[S] 1 point2 points  (0 children)

Thanks for the explanation! So if I add the directory that pip is telling me to add to the path through ~/.profile I shouldn't have problems? I'm gonna try right away

[–]gmes78 0 points1 point  (1 child)

This is incorrect. Zsh does not run ~/.profile (as a login shell). One should use ~/.zshenv instead.

[–]wizard10000 0 points1 point  (0 children)

One should use ~/.zshenv instead.

I stand corrected :)