Alias commands in Mac OSX Terminal
To add an alias (shortcut) to a command in Terminal do the following
alias myServer=’echo ssh myServer.wetware.co.nz;ssh myServer.wetware.co.nz’
Notice that I echo the command before executing it, this is to reduce confusion when you call an alias which does something you forgot it did..
[Update]
Well that worked, but not for long. If you exit terminal, you lose it. So add it to your ~/.profile (if you don’t have that file make one..)
Related Posts
Posted on March 3, 2009 at 12:51 pm by Jordan Carter · Permalink
In: Web Development · Tagged with: Mac OSX
In: Web Development · Tagged with: Mac OSX
on June 10, 2009 at 5:06 am
Permalink
It worked nicely. Only caveat is to switch the ’ symbol for the ‘ symbol.
Thank you so much.