mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Fix completions for pactree, pkgfile
This commit is contained in:
parent
3c9b5713c9
commit
b121b9649b
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user