Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Per command _redirect completion
- X-seq: zsh-workers 16706
 
- From: Felix Rosencrantz <f_rosencrantz@xxxxxxxxx>
 
- To: zsh-workers <zsh-workers@xxxxxxxxxxxxxx>
 
- Subject: Per command _redirect completion
 
- Date: Sun, 24 Feb 2002 21:59:48 -0800 (PST)
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
 
Below is a proposed change for the _redirect completion function.  If there
is a function with the name _redirect:COMMAND, that function is called
to perform completion.  Otherwise, the default behavior of completing files
is performed.  This is the way we do variable specific dispatch for _value.
If there are no objections, I'll create a real diff and checkin.
-FR.
---------------------------------------------------------------------------
#compdef -redirect-
if (( $+functions[_redirect:$words[1]] )); then
    "_redirect:$words[1]" "$@"
else
        _files
fi
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author