Enter the .bash_profile
file by running this in your terminal:
vim ~/.bash_profile
If you still get permission denied, run sudo
before the vim
command
sudo vim ~/.bash_profile
From there , press insert
button . then add the text source ~/.profile
to .bash_profile
and press esc
and then hit :x
on your keyboard to save and close the file. Opening a new terminal window should remove the error.