View your PATH
Run the following command to view your PATH:
Edit your PATH
sudo nano /etc/paths
If using zsh shell as default:
To do this via your .zshrc file type in:
What is the purpose of PATH?
PATH is an environment variable that contains a colon-separated list of directories where your shell will look for executables that you name on the command line without providing an explicit path to them (as in your jsdoc example). Thus, if your PATH has
then any executable you call by name will be searched for in these directories (in that order) and the first executable found is the one executed.
Top comments (0)