add path to $PATH
PATH=$PATH:~/opt/bin
# or
PATH=~/opt/bin:$PATH
add path to $PATH
PATH=$PATH:~/opt/bin
# or
PATH=~/opt/bin:$PATH
add in your PATH.
export PATH="$HOME/bin:$PATH"Copy
add to path to PATH
FOR MAC:
1º - Open Finder
2º - Choose Go > Go to folder
3º - Go to ~/Library/
4º - Look for hidden files: Cmd + Shift + . (dot)
5º - Depending on the shell you use, the file can be .bash_profile, or .bashrc, or .zshrc, ...
6º - Open that file in the text editor
7º - Add the new path like: export PATH="$PATH:"User/new_path/..."
8º - Test in your command line if it worked: echo $PATH
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us