From 4cdc5e402073df18fcdcb766cce6285291452a11 Mon Sep 17 00:00:00 2001 From: Akatsuki <3736910+akiirui@users.noreply.github.com> Date: Wed, 23 Oct 2019 22:13:24 +0800 Subject: [PATCH] completions/pacman.fish: Update for pacman 5.2 pacman 5.2 has remove File Options `-s --search` and `-o --owns`. Ref: [pacman: rework the UI of -F](https://git.archlinux.org/pacman.git/commit/?id=ff1ae94c102cab487444bcdb0c76ee489c11dfe8) --- share/completions/pacman.fish | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish index 7a8b3ca0c..862459694 100644 --- a/share/completions/pacman.fish +++ b/share/completions/pacman.fish @@ -121,14 +121,11 @@ complete -c $progname -n "$has_db_opt; and $database" -xa "$listinstalled" 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 x -l regex -d 'Interpret each query as a regular expression' -f 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 +complete -c $progname -n "$files" -l machinereadable -d 'Print each match in a machine readable output format' -f # Upgrade options # Theoretically, pacman reads packages in all formats that libarchive supports