diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-31 12:35:36 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-31 12:35:36 +0000 |
commit | efed1e6c10daba9ea4260845a91f518f573ec1d3 (patch) | |
tree | 1ef8c57b841a3ce643517e78f8c6248b379d36ce /Completion/Unix/Command | |
parent | 999155849631b17d87327c666365615697890b43 (diff) | |
download | zsh-efed1e6c10daba9ea4260845a91f518f573ec1d3.tar.gz zsh-efed1e6c10daba9ea4260845a91f518f573ec1d3.tar.xz zsh-efed1e6c10daba9ea4260845a91f518f573ec1d3.zip |
users/13162: strip ~ suffix from modules
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module index e220a94e8..65e29430a 100644 --- a/Completion/Unix/Command/_module +++ b/Completion/Unix/Command/_module @@ -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 } |