X xxarmoxx macrumors newbie Original poster Jun 8, 2007 18 0 Jun 13, 2007 #1 I want to create an alias so when I type "con" it does the following command: ssh myserver.com how can I do this?
I want to create an alias so when I type "con" it does the following command: ssh myserver.com how can I do this?
GimmeSlack12 macrumors 603 Apr 29, 2005 5,406 14 San Francisco Jun 13, 2007 #2 When you type "con" where? I'm assuming your wanting a Terminal alias command? Explain a little more please.
When you type "con" where? I'm assuming your wanting a Terminal alias command? Explain a little more please.
X xxarmoxx macrumors newbie Original poster Jun 8, 2007 18 0 Jun 13, 2007 #3 yes, through the terminal, forgot to mention that
mkrishnan Moderator emeritus Jan 9, 2004 29,776 15 Grand Rapids, MI, USA Jun 13, 2007 #4 It's pretty simple. Follow these directions: http://ncyoung.com/entry/396 In bash, the alias command looks like this: alias goQuick="cd /some/really/really/long/path/you/do/not/want/to/type" Put this in ~/.bash_profile then log out and log back in. Now you can use goQuick as a shortcut to that long command. Awesome! Click to expand... You can edit .bash_profile with 'pico ~/.bash_profile' or probably with 'open ~/.bash_profile'
It's pretty simple. Follow these directions: http://ncyoung.com/entry/396 In bash, the alias command looks like this: alias goQuick="cd /some/really/really/long/path/you/do/not/want/to/type" Put this in ~/.bash_profile then log out and log back in. Now you can use goQuick as a shortcut to that long command. Awesome! Click to expand... You can edit .bash_profile with 'pico ~/.bash_profile' or probably with 'open ~/.bash_profile'
X xxarmoxx macrumors newbie Original poster Jun 8, 2007 18 0 Jun 13, 2007 #5 sweet, that worked. Thanks