mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
users/13162: strip ~ suffix from modules
This commit is contained in:
parent
9991558496
commit
efed1e6c10
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-08-31 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* users/13162: Completion/Unix/Command/_module: strip
|
||||
"~" suffix from modules.
|
||||
|
||||
2008-08-30 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 25553: Completion/Zsh/Command/_precommand:
|
||||
|
|
|
@ -85,7 +85,7 @@ _module_available_modules()
|
|||
{
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue