editing PATH variable on mac [closed]

Open and edit /etc/paths using any text editor.

$ sudo vi /etc/paths

(editing text files with vi)

Note: each entry is separated by a new line

/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin

Save and close the file. Then restart your terminal.

Leave a Comment