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

Re: completion hacking



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