From 0140d5517943914a402ca735d3c4407c80c5785f Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Sun, 18 Jun 2023 19:09:50 -0300 Subject: [PATCH] slackware slackbuilds for sboinstall --- src/_sboinstall | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/_sboinstall diff --git a/src/_sboinstall b/src/_sboinstall new file mode 100644 index 0000000..d663933 --- /dev/null +++ b/src/_sboinstall @@ -0,0 +1,27 @@ +#compdef sboinstall +# ------------------------------------------------------------------------------ +# Description +# ----------- +# +# Completion script for Slackware Packages Installation using sbotools +# sboinstall package +# from https://slackbuilds.org +# +# Requisites: +# sbotools ( https://pink-mist.github.io/sbotools/ ) must be installed, +# and its repository inside the standard location: /usr/sbo/repo/ +# +# ------------------------------------------------------------------------------ +# Author +# ------- +# +# * Ruben Carlo Benante +# +# Creationg Date: 2023-06-18 +# +# ------------------------------------------------------------------------------ + +local -a spkg + +_alternative "arguments:pkgs arg:($(find /usr/sbo/repo/ -type f -name slack-desc -exec sed -n '/handy-ruler/{ n; p }' {} \+ | sed 's/:/ :/' | cut -d':' -f1 | tr -d '\n\r'))" +