I want to change my PATH variable in zsh.
Problem: I don't understand where in the .zshrc file I have to make modifications.
Normally, I would look for the assignment to the PATH variable and set the values from scratch how I would like them to be (leaving all the systems binaries directories untouched).
The first lines in my .zshrc file are as follows:
# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/Users/Sam/oh-my-zsh" export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/13/bin etc.
My actual PATH variable is:
/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/13/bin I want to delete the directory where python3.8 is in, it's redundant.
My questions:
- Do I have to change line 2 or line 7 in my .zshrc file?
- Line 2 is commented out...is it executed anyway at the start of the terminal?
- I have tried to comment out line 7. But the postgres directory still remained in my PATH variable which I don't understand.