From: Mart Lubbers Date: Tue, 23 Oct 2018 07:59:37 +0000 (+0200) Subject: improve clm modules X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=1e07de860b44cbb2862142fe7901558afeea73e9;p=dotfiles.git improve clm modules --- 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 ;;