Alias Question

Discussion in 'macOS' started by xxarmoxx, Jun 13, 2007.

  1. xxarmoxx macrumors newbie

    Joined:
    Jun 8, 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?
     
  2. GimmeSlack12 macrumors 603

    GimmeSlack12

    Joined:
    Apr 29, 2005
    Location:
    San Francisco
    #2
    When you type "con" where? I'm assuming your wanting a Terminal alias command? Explain a little more please.
     
  3. xxarmoxx thread starter macrumors newbie

    Joined:
    Jun 8, 2007
    #3
    yes, through the terminal, forgot to mention that
     
  4. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #4
    It's pretty simple. Follow these directions:

    http://ncyoung.com/entry/396

    You can edit .bash_profile with 'pico ~/.bash_profile' or probably with 'open ~/.bash_profile'
     
  5. xxarmoxx thread starter macrumors newbie

    Joined:
    Jun 8, 2007

Share This Page