From 1e07de860b44cbb2862142fe7901558afeea73e9 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 23 Oct 2018 09:59:37 +0200 Subject: [PATCH] improve clm modules --- shell/.bash_completion.d/clm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/.bash_completion.d/clm b/shell/.bash_completion.d/clm index 9eb873d..3f5b9ef 100644 --- a/shell/.bash_completion.d/clm +++ b/shell/.bash_completion.d/clm @@ -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 ;; -- 2.20.1