aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/pacman.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-02 09:47:44 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-02 09:47:44 +0100
commitd3f6c8a69400b8b4cb6e199a3d332c47b49b45fa (patch)
tree44b4578c58dc0342bcbab499ccc0fdef42f7c20c /share/completions/pacman.fish
parente086e27f986b21fbb73687ff9638bfc300bf8cba (diff)
pacman: Improve --files completion
Missed one option and the option-as-command-hack
Diffstat (limited to 'share/completions/pacman.fish')
-rw-r--r--share/completions/pacman.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish
index 6bffd54f..cfe3dd5c 100644
--- a/share/completions/pacman.fish
+++ b/share/completions/pacman.fish
@@ -123,9 +123,15 @@ complete -c $progname -n "$database; and not $has_db_opt" -s k -l check -d 'Chec
complete -c $progname -n "$has_db_opt; and $argument; and $database" -xa "$listinstalled"
# File options - since pacman 5
+set -l has_file_opt '__fish_contains_opt list search -s l -s s'
+complete -c $progname -n "$files; and not $has_file_opt" -xa --list -d 'List files owned by given packages'
+complete -c $progname -n "$files; and not $has_file_opt" -xa -l -d 'List files owned by given packages'
+complete -c $progname -n "$files; and not $has_file_opt" -xa --search -d 'Search packages for matching files'
+complete -c $progname -n "$files; and not $has_file_opt" -xa -s -d 'Search packages for matching files'
complete -c $progname -n "$files" -s y -l refresh -d 'Refresh the files database' -f
complete -c $progname -n "$files" -s l -l list -d 'List files owned by given packages' -xa $listall
complete -c $progname -n "$files" -s s -l search -d 'Search packages for matching files'
+complete -c $progname -n "$files" -s o -l owns -d 'Search for packages that include the given files'
complete -c $progname -n "$files" -s q -l quiet -d 'Show less information' -f
complete -c $progname -n "$files" -l machinereadable -d 'Show in machine readable format: repo\0pkgname\0pkgver\0path\n' -f