Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion for variable assigement
- X-seq: zsh-users 3186
- From: Bernd Eggink <eggink@xxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxxxxxx>
- Subject: Completion for variable assigement
- Date: Sun, 18 Jun 2000 22:33:19 +0200
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
I'd like to have completion for assignements to a variable. So that,
for example,
PROJECT=<TAB>
will allow me to cycle through all file names in the current directory
ending with '.mak' (without the suffix). I succeeded in doing this only
by wrapping the assignement in a function 'setp':
function projects
{
reply=(*.mak) 2>/dev/null
reply=(${reply%.mak})
}
function setp
{
PROJECT=$1
}
compctl -K projects setp
Is there any way to avoid the wrapper function?
Regards,
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@xxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author