blob: ebfd62463f8b707f3cf7039e1d8f882894b11513 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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:
|