Trying to set up my bash_profile but I don't know what I'm doing wrong.
touch ~/.bash_profile
And…
open ~/.bash_profile
Save and close the .bash_profile.
Then close and re-open Terminal and I get this:
Last login: Sat Dec 12 12:52:20 on ttys000
-bash: alias: /Users/BilboBaggins/bash_profile’: not found
What am I doing wrong? The contents of my .bash_profile looks as follows:
alias bp='open ~/.bash_profile'
Best Answer
I copy and pasted code again from Safari into TextEdit and it worked.
I deleted my profile, re-started Terminal, and re-did it by hand, and it broke again. It only works when I paste the code from Safari. So weird. No idea why this is.
If anyone has any idea, let me know because i'm so confused.