Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xxarmoxx

macrumors newbie
Original poster
Jun 8, 2007
18
0
I want to create an alias so when I type "con" it does the following command: ssh myserver.com

how can I do this?
 
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!

You can edit .bash_profile with 'pico ~/.bash_profile' or probably with 'open ~/.bash_profile'
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.