Fix completions for pactree, pkgfile

This commit is contained in:
phanium 2024-04-04 22:07:41 +08:00 committed by Fabian Boehm
parent 3c9b5713c9
commit b121b9649b
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
complete -c pactree -xa "(pacman -Sl | string replace -r '(\S+) *(\S+) *(.*)' '$2\t$3')"
complete -c pactree -xa "(__fish_print_pacman_packages --installed)"
complete -c pactree -s b -l dbpath -d 'Set an alternate database location' -xa '(__fish_complete_directories)'
complete -c pactree -s c -l color -d 'Colorize output'
complete -c pactree -s d -l depth -d 'Limit the depth of recursion' -x

View File

@ -7,6 +7,6 @@ complete -c pkgfile -s r -l regex -d 'allow the use of regex in searches'
complete -c pkgfile -s R -l repo -d 'search only in the specified repository' -xa '(__fish_print_pacman_repos)'
complete -c pkgfile -s v -l verbose -d 'enable verbose output'
complete -c pkgfile -s i -l info -d 'provides information about the package owning a file' -r
complete -c pkgfile -s l -l list -d 'list files of a given package; similar to "pacman -Ql"' -xa "(pacman -Sl | string replace -r '(\S+) *(\S+) *(.*)' '$2\t$3')"
complete -c pkgfile -s l -l list -d 'list files of a given package; similar to "pacman -Ql"' -xa "(__fish_print_pacman_packages)"
complete -c pkgfile -s s -l search -d 'search which package owns a file' -r
complete -c pkgfile -s u -l update -d 'update to the latest filelist. This requires write permission to /var/cache/pkgtools/lists'