5 Jul 2020

Add PATH to macOS Catalina 10.15.5

sudo nano ~/.bash_profile 

or (sudo nano ~/.profile)

(^ stands for the control key)
^O (F3) Write the current file to disk

add

export IM_STUDIO_PATH="$HOME/.imstudio/bin:$PATH"

The $PATH part is important as it appends the existing PATH to preserve it in the new value.

Force the .bash_profile to execute. This loads the values immediately without having to reboot. In your Terminal window, run the following command.

source ~/.bash_profile

That’s it! Now you know how to edit the PATH on your Mac OS X computer system. You can confirm the new path by opening a new Terminal and running:

echo $PATH


macOS Catalina 10.15.5

macOS Catalina uses .zprofile instead of .bash_profile

sudo nano .zprofile

add


export PATH=$PATH:/usr/local/scala/bin

==========

1. Enter nano .bash_profile (It will open the .bash_profile file in the nano editor)
2. After making changes to the file use ControlX (to "exit")
3. Then it asks for the changes to be made permanently and gives two options: Yes (or) No
4. Press Y and press Enter to save the file


No comments:

Post a Comment

Popular Posts