Search code examples
pathzshiterm2zshrc

Removing entry from begginng of $PATH


In my .zshrc file I added: export PATH="/usr/local/bin:$PATH" after removing this from the file my path still starts with /usr/local/bin

How can I permanently remove this entry from my path?

Also know when I try to open a file with the open command I get this error:

LSOpenURLsWithRole() failed with error -600 for the file /Users/m/.zshrc


Solution

  • Zsh process reads .zshrc on startup only. Exit and re-login to restart zsh process. Or run the following command-line on the current zsh:

    % export PATH="${PATH#/usr/local/bin:}"