Using aliases in Terminal
Dear All,
I'm trying to add new alias to my terminal so I used the below commands
First I went to my bash_profile by using the commands
cd ~
nano .bash_profile
Then I added the below line at the end of the file and saved it & exit the file
alias htdocs="cd /Applications/mamp/htdocs"
After that I closed the terminal and opened it again to restart it, then I typed "htdocs" then pressed enter but still found the terminal informing me "-sh: htdocs: command not found "
Now I'm asking why the alias not working with me ?!!! , what I miss ?!!!
Thanks
MacBook Pro (Retina, 13-inch, Mid 2014), OS X Mavericks (10.9.5)