I want to create a bash alias on OS X, because I need to type on a really large command.
I've found some answers about the same issue on ubuntu, like this one, but they mention the ~/.bashrc file, which doesn't exist (at least by default) on OS X.
bashterminal
I want to create a bash alias on OS X, because I need to type on a really large command.
I've found some answers about the same issue on ubuntu, like this one, but they mention the ~/.bashrc file, which doesn't exist (at least by default) on OS X.
Best Answer
I've found that I can do this by editing the
.bash_profile
file.Just added:
alias my_alias='cd /my/really/long/long/path
to
.bash_profile
, and after reopening bash my alias command worked just fine.