diff options
Diffstat (limited to 'completions/zsh')
-rw-r--r-- | completions/zsh/_sbocheck | 14 | ||||
-rw-r--r-- | completions/zsh/_sboclean | 19 | ||||
-rw-r--r-- | completions/zsh/_sboconfig | 26 | ||||
-rw-r--r-- | completions/zsh/_sbofind | 34 | ||||
-rw-r--r-- | completions/zsh/_sboinstall | 39 | ||||
-rw-r--r-- | completions/zsh/_sboremove | 18 | ||||
-rw-r--r-- | completions/zsh/_sbosnap | 19 | ||||
-rw-r--r-- | completions/zsh/_sboupgrade | 28 |
8 files changed, 0 insertions, 197 deletions
diff --git a/completions/zsh/_sbocheck b/completions/zsh/_sbocheck deleted file mode 100644 index 6c1378f..0000000 --- a/completions/zsh/_sbocheck +++ /dev/null @@ -1,14 +0,0 @@ -#compdef sbocheck - -# sbotools: https://pink-mist.github.io/sbotools/ - -_arguments \ - '(-)'{-h,--help}'[Show help.]:' \ - '(-)'{-v,--version}'[Show version.]:' \ - && return 0 - -return 1 - -# Local Variables: -# mode: sh -# End: diff --git a/completions/zsh/_sboclean b/completions/zsh/_sboclean deleted file mode 100644 index 8eeda20..0000000 --- a/completions/zsh/_sboclean +++ /dev/null @@ -1,19 +0,0 @@ -#compdef sboclean - -# sbotools: https://pink-mist.github.io/sbotools/ - -_arguments -s \ - - info \ - '(-)'{-h,--help}'[Show help.]:' \ - '(-)'{-v,--version}'[Show version.]:' \ - - commands \ - '(-d --dist)'{-d,--dist}'[Clean distfiles (default /usr/sbo/distfiles).]' \ - '(-w --work)'{-w,--work}'[Clean working directories (default /tmp/SBo; /tmp for compat32).]' \ - '(-i --interactive)'{-i,--interactive}'[Ask for confirmation for each item to be removed.]' \ - && return 0 - -return 1 - -# Local Variables: -# mode: sh -# End: diff --git a/completions/zsh/_sboconfig b/completions/zsh/_sboconfig deleted file mode 100644 index 69e2984..0000000 --- a/completions/zsh/_sboconfig +++ /dev/null @@ -1,26 +0,0 @@ -#compdef sboconfig - -# sbotools: https://pink-mist.github.io/sbotools/ - -_arguments \ - - info \ - '(-)'{-h,--help}'[Show help.]:' \ - '(-)'{-v,--version}'[Show version.]:' \ - '(-)'{-l,--list}'[List current configuration options (including unmodified defaults).]:' \ - - commands \ - '(-c --noclean)'{-c,--noclean}'[If TRUE, then do not clean working directories after build.]:clean work dirs?:((TRUE\:"Clean works directories" FALSE\:"Keep work directories"))' \ - '(-d --distclean)'{-d,--distclean}'[If TRUE, then remove source code after building.]:clean source?:((TRUE\:"Remove source" FALSE\:"Keep source"))' \ - '(-g --gpg-key)'{-g,--gpg-key}'[The gpg key used for verification, FALSE to disable.]:use gpg?:((FALSE\:"Do not verify"))' \ - '(-j --jobs)'{-j,--jobs}'[Number fed to -j# for make.]:number of jobs (make):()' \ - '(-p --pkg-dir)'{-p,--pkg-dir}'[Directory to store built packages in.]:package directory:_files -/' \ - '(-s --sbo-home)'{-s,--sbo-home}'[Directory for SBo tree (default /usr/sbo).]:SBo home dir:_files -/' \ - '(-o --local-overrides)'{-o,--local-overrides}'[Directory for local SlackBuild overrides.]:overrides directory:_files -/' \ - '(-V --slackware-version)'{-V,--slackware-version}'[Use SBo repo for this version (instead of /etc/slackware-version).]:Slackware version:()' \ - '(-r --repo)'{-r,--repo}'[Use git/rsync repo at URL instead of the SBo repo for your SLACKWARE_VERSION.]:repo URL:()' \ - && return 0 - -return 1 - -# Local Variables: -# mode: sh -# End: 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: diff --git a/completions/zsh/_sboinstall b/completions/zsh/_sboinstall deleted file mode 100644 index 30bf590..0000000 --- a/completions/zsh/_sboinstall +++ /dev/null @@ -1,39 +0,0 @@ -#compdef sboinstall - -# 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]:' \ - '(-)'{-v,--version}'[Show version information.]:' \ - - commands \ - '(-c --noclean)'{-c,--noclean}'[If TRUE, then do not clean working directories after build.]:clean work dirs?:((TRUE\:"Clean works directories" FALSE\:"Keep work directories"))' \ - '(-d --distclean)'{-d,--distclean}'[If TRUE, then remove source code after building.]:clean source?:((TRUE\:"Remove source" FALSE\:"Keep source"))' \ - '(-i --noinstall)'{-i,--noinstall}'[Do not install package after building.]' \ - '(-j --jobs)'{-j,--jobs}'[Number fed to -j# for make.]:number of jobs (make):()' \ - '(-p --compat32)'{-p,--compat32}'[Create a -compat32 package on x86_64 systems (experimental).]' \ - '(-r --nointeractive)'{-r,--nointeractive}'[Skip README.]' \ - '(-R --norequirements)'{-R,--norequirements}'[Skip requirement handling.]' \ - '--reinstall[Asks for reinstall from the requirements.]' \ - '(--use-template)''--create-template[Create a template for the SlackBuilds.]:Template file:()' \ - '(--create-template)''--use-template[Use a template file (also enables -r flag).]:Template file:_files' \ - '(-)*:SlackBuild:(${slackbuilds:|words})' \ - && return 0 - -return 1 - -# Local Variables: -# mode: sh -# End: diff --git a/completions/zsh/_sboremove b/completions/zsh/_sboremove deleted file mode 100644 index ebfd624..0000000 --- a/completions/zsh/_sboremove +++ /dev/null @@ -1,18 +0,0 @@ -#compdef sboremove - -# sbotools: https://pink-mist.github.io/sbotools/ - -# get all installed SBo packages -packages=( ${(uf)"$(ls /var/log/packages/*_SBo | cut -d'/' -f5 | rev | cut -d- -f4- | rev)"} ) - -_arguments \ - - info \ - '(-)'{-h,--help}'[Show help]:' \ - '(-)'{-v,--version}'[Show version]:' \ - - commands \ - '(-a --alwaysask)'{-a,--alwaysask}'[Always ask to remove requirements (even if required by installed packages).]' \ - '(-)*:SlackBuild:(${packages:|words})' - -# Local Variables: -# mode: sh -# End: diff --git a/completions/zsh/_sbosnap b/completions/zsh/_sbosnap deleted file mode 100644 index 16b310a..0000000 --- a/completions/zsh/_sbosnap +++ /dev/null @@ -1,19 +0,0 @@ -#compdef sbosnap - -# sbotools: https://pink-mist.github.io/sbotools/ - -local -a subcmds -subcmds=('fetch:Download a local copy of the slackbuilds.org tree (to SBO_HOME).' - 'update:Update a previously fetched copy of the SBo tree.') -_describe 'command' subcmds - -_arguments \ - '(-)'{-h,--help}'[Show help.]:' \ - '(-)'{-v,--version}'[Show version.]:' \ - && return 0 - -return 1 - -# Local Variables: -# mode: sh -# End: diff --git a/completions/zsh/_sboupgrade b/completions/zsh/_sboupgrade deleted file mode 100644 index bc6ff2d..0000000 --- a/completions/zsh/_sboupgrade +++ /dev/null @@ -1,28 +0,0 @@ -#compdef sboupgrade - -# sbotools: https://pink-mist.github.io/sbotools/ - -# get a list of available upgrades -sboupdates=( ${(uf)"$(perl -MSBO::Lib::Pkgs=get_available_updates -E 'say $_->{name} for @{ get_available_updates; }')"} ) - -_arguments -s -C \ - - info \ - '(-)'{-h,--help}'[Show help]:' \ - '(-)'{-v,--version}'[Show version information.]:' \ - - commands \ - '(${sboupdates})--all[Upgrade all from sbocheck.]' \ - '(-c --noclean)'{-c,--noclean}'[If TRUE, then do not clean working directories after build.]:clean work dirs?:((TRUE\:"Clean works directories" FALSE\:"Keep work directories"))' \ - '(-d --distclean)'{-d,--distclean}'[If TRUE, then remove source code after building.]:clean source?:((TRUE\:"Remove source" FALSE\:"Keep source"))' \ - '(-j --jobs)'{-j,--jobs}'[Number fed to -j# for make.]:number of jobs (make):()' \ - '(-r --nointeractive)'{-r,--nointeractive}'[Skip README.]' \ - '(-f --force)'{-f,--force}'[Force an upgrade (ignore version).]' \ - '(-z --force-reqs)'{-z,--force-reqs}'[Force update of requirements (use with -f).]' \ - '(-i --noinstall)'{-i,--noinstall}'[Build package but do not install.]' \ - '(-)*:SlackBuild:(${sboupdates:|words})' \ - && return 0 - -return 1 - -# Local Variables: -# mode: sh -# End: |