Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion hacking
- X-seq: zsh-users 1204
- From: Andrew Main <zefram@xxxxxxxxx>
- To: mirar@xxxxxxxxxx (Mirar)
- Subject: Re: completion hacking
- Date: Mon, 15 Dec 1997 11:18:41 +0000 (GMT)
- Cc: zefram@xxxxxxxxx, sweth@xxxxxxxxxxxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <827m974jep.fsf_-_@xxxxxxxxxxxxxxxxxxx> from "Mirar" at Dec 15, 97 00:03:26 am
Mirar wrote:
>Could this be written in a better way?
>
>cvsaddp() {
> setopt localoptions nullglob
> [[ -e CVS/Entries ]] && reply=(`(sed -ne 's:^/\([^/]*\)/.*$:E\1:p' -e 's:^/\([^/]*\)/-.*$:E\1:p' <CVS/Entries; ( ls -a1 | sed 's:^\(.*\)$:D\1:g' ); (ls -ad1 $(echo "$cvsignore"; cat .cvsignore 2>/dev/null ) 2>/dev/null | sed 's:^\(.*\)$:I\1:g' ) ) | sort +0.1 | uniq --skip-chars=1 -u | sed -ne 's/^[^I]\(.*\)$/\1/p'`)
>}
Probably.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author