View file contents
cat ~/.zshrc
If the file does not exist, or if it exists, enter the editing state directly
nano ~/.zshrc
Type i to start editing the file, add the following to the file and save
source ~/.bash_profile
List environment variables
printenv
List Paths under environment variables
echo $PATH
open bash profile
nano ~/.bash_profile
Add path to PATH
|
|
or
|
|
Execute bash profile
|
|