base-files: update to 0.144

adds zsh completions for vkpurge
This commit is contained in:
classabbyamp 2024-02-10 02:56:34 -05:00 committed by classabbyamp
parent 9ee7eea172
commit dfc15d6a23
2 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,34 @@
#compdef vkpurge
local context state state_descr line
typeset -A opt_args
local curcontext="$curcontext"
_arguments -C \
'1: :->subcmd' \
'*:: :->kernels'
case "$state" in
subcmd)
local subcommands=(
'list:list removable kernel versions'
'rm:remove removable kernel versions'
)
_describe -t commands subcommand subcommands
;;
kernels)
curcontext="${curcontext%:*:*}:vkpurge-$line[1]:"
case "$line[1]" in
list)
_arguments '1::version glob: '
;;
rm)
local kernels=(
'all:all removable kernels'
$(vkpurge list all)
)
_describe -t kernels kernel kernels
;;
esac
;;
esac

View File

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.143
revision=4
version=0.144
revision=1
bootstrap=yes
depends="xbps-triggers"
short_desc="Void Linux base system files"
@ -84,6 +84,7 @@ do_install() {
# vkpurge
vbin ${FILESDIR}/vkpurge
vman ${FILESDIR}/vkpurge.8
vcompletion "${FILESDIR}"/_vkpurge zsh vkpurge
vbin ${FILESDIR}/lsb_release