diff options
author | Max Voit <max.voit+mlzs@with-eyes.net> | 2021-07-08 19:47:41 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-07-08 23:51:36 +0200 |
commit | f1d4a07845a3210401f3619aa59a2653e415f99a (patch) | |
tree | 6567c509779a78add128f8075dddbf455ba3fad5 /Completion | |
parent | d634a3d333027561eb2d96120f3d40a876f1dd6f (diff) | |
download | zsh-f1d4a07845a3210401f3619aa59a2653e415f99a.tar.gz zsh-f1d4a07845a3210401f3619aa59a2653e415f99a.tar.xz zsh-f1d4a07845a3210401f3619aa59a2653e415f99a.zip |
49153: cut off .lua extension from module files that occurs when using lmod for module
Diffstat (limited to 'Completion')
-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 2a4dba740..23cf0c589 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 -L ${(e)=MODULEPATH//:/ } -type f -print 2>/dev/null | grep -v \\.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'):#*\~}) + _available_modules=(${$(find -L ${(e)=MODULEPATH//:/ } -type f -print 2>/dev/null | grep -v \\.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g' -e 's,\.lua$,,g'):#*\~}) fi } |