aboutsummaryrefslogtreecommitdiff
path: root/completions/zsh/_sbofind
diff options
context:
space:
mode:
Diffstat (limited to 'completions/zsh/_sbofind')
-rw-r--r--completions/zsh/_sbofind34
1 files changed, 0 insertions, 34 deletions
diff --git a/completions/zsh/_sbofind b/completions/zsh/_sbofind
deleted file mode 100644
index b2c4d05..0000000
--- a/completions/zsh/_sbofind
+++ /dev/null
@@ -1,34 +0,0 @@
-#compdef sbofind
-
-# sbotools: https://pink-mist.github.io/sbotools/
-
-# work out where the SBo repo is (default to /usr/sbo/repo)
-# but also check for SBO_HOME setting in /etc/sbotools/sbotools.conf
-grep 'SBO_HOME' /etc/sbotools/sbotools.conf &> /dev/null
-if [ $? -eq 0 ]; then
- repo="$(grep 'SBO_HOME' /etc/sbotools/sbotools.conf | cut -d= -f2)/repo"
-else
- repo='/usr/sbo/repo'
-fi
-
-# grab a listing of all slackbuilds
-slackbuilds=( ${(uf)"$(grep 'SLACKBUILD NAME: ' $repo/SLACKBUILDS.TXT | cut -b 18-)"} )
-
-_arguments -s \
- - info \
- '(-)'{-h,--help}'[Show help information.]:' \
- '(-)'{-v,--version}'[Show version information.]:' \
- - commands \
- '(-e --exact)'{-e,--exact}'[Only exact matching.]' \
- '(-t --no-tags)'{-t,--no-tags}'[Exclude tags from search.]' \
- '(-i --info)'{-i,--info}'[Show the contents of the .info file for each SlackBuild.]' \
- '(-r --readme)'{-r,--readme}'[Show the contents of the README file for each SlackBuild found.]' \
- '(-q --queue)'{-q,--queue}'[Show the build queue for each SlackBuild found.]' \
- '(-)*:SBo SlackBuild:(${slackbuilds:|words})' \
- && return 0
-
-return 1
-
-# Local Variables:
-# mode: sh
-# End: