Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fun zsh trick for today
- X-seq: zsh-users 3152
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Matthias Kopfermann <kopfermann@xxxxxxxxxxxxxxxx>
- Subject: Re: Fun zsh trick for today
- Date: Wed, 14 Jun 2000 09:57:34 -0400
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <20000614154338.A25454@xxxxxxxxxxxxxxxxxxxxxxxxxx>; from kopfermann@xxxxxxxxxxxxxxxx on Wed, Jun 14, 2000 at 03:43:38PM +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <no.id> <20000614154338.A25454@xxxxxxxxxxxxxxxxxxxxxxxxxx>
> i think, this would be a great feature of the mailinglist, if
> bart or sven or some other guru would give such nice tricks once
> a week or something.
> it makes happy user, at least it made me happy :)
I'm no Bart-guru, but here's an application of his trick that I find useful
for the new completion system:
zmodload -i zsh/mapfile
hosts=(${(@)${(@)${(M)${(f)mapfile[$HOME/.ssh/known_hosts]}:#[^0-9]*}%%\ *}%%,*})
zstyle ':completion:*:hosts' hosts $hosts
Messages sorted by:
Reverse Date,
Date,
Thread,
Author