Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Tiny patch to module command completion
- X-seq: zsh-users 11915
- From: Daniel Qarras <dqarras@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Tiny patch to module command completion
- Date: Mon, 1 Oct 2007 10:06:21 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=1MxXetN4P/BxPCY75YbwkgFyzeeGQqUD5uGmVmEoU+dQtqeOwERypEWz9lWrbdZt1QXDxPSROmCXCe7ojGN7frQf05/ZJX+x1JbtHwLsJ9m2cz2KtwFcOcrz6im3hY6nGOPm7bpd2Cx81vtiGlNUyTQ4y63Pd4e4DGQS2AUfUGY=;
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
please apply the attached tiny patch to fix a thinko/typo in module
command completion, it changes "grep -v \.version" to "grep -v
\\.version". Without it modules containing regexp .version won't show
up in completion list (e.g., subversion).
Thanks.
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
--- zsh/Completion/Unix/Command/_module.orig
+++ zsh/Completion/Unix/Command/_module
@@ -85,7 +85,7 @@
{
if [[ -n $MODULEPATH ]] && [[ ${+_available_modules} -eq 0 ]]
then
- _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'))
+ _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \\.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'))
fi
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author