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

Re: compctl - aliasing hostnames



On Jul 30, 11:07pm, Sven Guckes wrote:
> Subject: compctl - aliasing hostnames
> I'd like to type "ssh alias" and be connected with "ssh hostname".
> How could you "alias" a hostname with completion control?

Use "alias -g":

zsh% alias -g fnorgle=aixhost
zsh% ssh fnorgle
user@aixhost's Password:

Of course, that means that fnorgle will be replaced by aixhost everywhere
in all commands, not just in the ssh command.



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