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

Re: bug report about zsh



Jun T wrote on Tue, 21 Aug 2018 12:24 +0900:
> all of these complete to foo@xxxxxxxx and the 123 will never be offered.
> So I wonder why : is in the pattern [:@]. Is it just to ignore the
> port number (if it exists)?

The 'else' branch deals exclusively with the portion before the "@" sign
of the (incomplete) "user@host" word on the command line.

The ':' there allows values of the users-hosts style to use colons, as in:

zstyle '*' users-hosts danielsh:localhost



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