aboutsummaryrefslogtreecommitdiff
path: root/completions/zsh/_sboremove
diff options
context:
space:
mode:
authorDavid O'Shaughnessy <drgibbon@users.noreply.github.com>2018-06-01 01:38:52 +1000
committerSlack Coder <slackcoder@server.ky>2024-08-16 05:43:33 -0500
commit32768f3aab56dad9c63a9e1db07fd3a1dd7adc6a (patch)
tree98c0c9fcd647de73be47d8f66ecc6f3b3890c2fc /completions/zsh/_sboremove
parent2e1a65c319cb2ee864b11bbf2fa2351aa6060759 (diff)
downloadsbotools2-32768f3aab56dad9c63a9e1db07fd3a1dd7adc6a.tar.xz
initial commit zsh completions
Diffstat (limited to 'completions/zsh/_sboremove')
-rw-r--r--completions/zsh/_sboremove18
1 files changed, 18 insertions, 0 deletions
diff --git a/completions/zsh/_sboremove b/completions/zsh/_sboremove
new file mode 100644
index 0000000..ebfd624
--- /dev/null
+++ b/completions/zsh/_sboremove
@@ -0,0 +1,18 @@
+#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: