X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.bash_completion.d%2Fclm;h=3f5b9efb34cb4df156714e7e614abe9587600aa5;hb=3232ebec1b74563f7dbd3ff7652c44976b6a705d;hp=9eb873d6352caeb5821a29f52066103c662e24b2;hpb=4ae9881d258bdb6155dbe2eaae0631605903999c;p=dotfiles.git 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 ;;