Adding a new entry to the PATH variable in ZSH

I’m using zsh terminal, and I’m trying to add a new entry (/home/david/pear/bin) to the PATH variable. I don’t see a reference to the PATH variable in my ~/.zshrc file, but doing echo $PATH returns:

/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

So I know that the path variable is being set somewhere. Where is the PATH variable set / modified for the zsh terminal?

8 Answers
8

Leave a Comment