added completion for build/install that checks the whole sbo repository, takes some... master
authordanix <danix@danix.xyz>
Wed, 22 Apr 2020 18:57:17 +0000 (20:57 +0200)
committerdanix <danix@danix.xyz>
Wed, 22 Apr 2020 18:57:17 +0000 (20:57 +0200)
slackrepo.completion

index 637b5c1ac72bc08eb52b5d94dc2bcb307a21608d..5955d0ea944a73bbbee62c66ffdc61fa616056d9 100644 (file)
@@ -58,6 +58,7 @@ _slackrepo() {
             # but I don't know if its feasible to scan the whole sbo repository for suggestions
             # so I'll limit to categories
             COMPREPLY+=( $(cd ${SLACKBUILDS}; compgen -d -- "$cur") )
+            COMPREPLY+=( $(cd ${SLACKBUILDS}; compgen -W "$(find . -type f -name '*.SlackBuild' -exec basename '{}' .SlackBuild \; )" -- "$cur" ) )
             return
             ;;
         rebuild )