improve clm modules
authorMart Lubbers <mart@martlubbers.net>
Tue, 23 Oct 2018 07:59:37 +0000 (09:59 +0200)
committerMart Lubbers <mart@martlubbers.net>
Tue, 23 Oct 2018 08:08:32 +0000 (10:08 +0200)
shell/.bash_completion.d/clm

index 9eb873d..3f5b9ef 100644 (file)
@@ -10,7 +10,10 @@ _clm()
        case $prev in
                "-IL")
                        # Complete Clean libraries
-                       opts="$(find "$CLEAN_HOME/lib" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;)"
+                       opts="$(find "$CLEAN_HOME/lib" -mindepth 1 -type d -not -name exe -regex ".*/lib/\([^/]*\|Platform/Deprecated/[^/]*\)" | cut -c $((${#CLEAN_HOME}+6))-)"
+                       
+                       
+
                        COMPREPLY=($(compgen -W "$opts" -- $cur))
                        return 0
                        ;;