* Tiny patch to module command completion
@ 2007-10-01 17:06 Daniel Qarras
0 siblings, 0 replies; only message in thread
From: Daniel Qarras @ 2007-10-01 17:06 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 485 bytes --]
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/
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 580540100-module-comp-fix.patch --]
[-- Type: text/x-patch; name="module-comp-fix.patch", Size: 545 bytes --]
--- 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
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-01 17:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-01 17:06 Tiny patch to module command completion Daniel Qarras
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).