Setting paths in .zprofile or .zshrc?
Hi,
With the risk of asking really stupid questions, but DuckDuckGo/Google were at least confusing.
Anyway, when installing Python 3.8 I noticed that the path was set in .zprofile ( in my home folder) automatically. I amended it such that the path to Python was appended to the other paths, as to give the default paths preference:
path+=('path-to-python3')
echo PATH
However, I noticed that it was still preceding another path that I appended earlier in the .zshrc file. Just for my understanding: am I correct in assuming that .zprofile has preference over .zshrc? Also, wouldn't it be wiser to add all paths to .zprofile and delete .zshrc, or is that not so smart? Many thanks in advance, gurus!
Regards,
Bas