Unable to create a permanent alias in Mac OS

Posted by Alex on Super User See other posts from Super User or by Alex
Published on 2014-06-11T01:45:57Z Indexed on 2014/06/11 3:30 UTC
Read the original article Hit count: 467

Filed under:
|
|
|

In Linux I can well to add alias to bashrc and it will become a permanent alias. In Mac OS I tried to do the same thing:

vim ~/.bashrc

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH f  or scripting
alias prj="cd ~/Documents/projects"

### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"

That being said, I got this:

$ alias
alias rvm-restart='rvm_reload_flag=1 source '\''/Users/alex/.rvm/scripts/rvm'\'''

So where is my prj alias? I rebooted the laptop but nothing has changed.

© Super User or respective owner

Related posts about osx

Related posts about bash