Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: compctl - aliasing hostnames



Sven Guckes <guckes@xxxxxxxxxxxxxxxxx> typed:
:I'd like to type "ssh alias" and be connected with "ssh hostname".
:How could you "alias" a hostname with completion control?  Example:
:	$ ssh alias
:	guckes@hostname's password:

ssh has a config file for this.  You don't need to do it with zsh.
RTFM ssh(1)

Something along the lines of:
    Host alias1
    Hostname realname1
    User user1
    Host alias2
    Hostname realname2
    # User user2 - unnecessary 'cos I'm the same as this host I'm sitting on
    Host alias3
    Hostname realname3
    User user3

-- 
Geoff Wing   <gcw@xxxxxxxxx>            Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/



Messages sorted by: Reverse Date, Date, Thread, Author