I added this line into my ~/.bashrc
file.
alias myserver='ssh [email protected]'
However, when I open terminal and run myserver
, terminal complains that
-bash: myserver: command not found
When I source my .bashrc file, however, (. .bashrc
), the alias works.
Nonetheless, I do not want to source the file every time I open terminal for the alias to work. How do I make that happen?
. .bashrc
into.bash_profile
works. – David Faux Mar 04 '12 at 19:43