Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compctl - aliasing hostnames
- X-seq: zsh-users 1689
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: compctl - aliasing hostnames
- Date: 31 Jul 1998 01:45:30 GMT
- Organization: PrimeNet Computer Consultants
- References: <19980730230755.B6503@xxxxxxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
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