From d4fafc15ca5735a340078535f335e81ebe97f6b4 Mon Sep 17 00:00:00 2001 From: Stefan Tatschner Date: Fri, 24 Jul 2020 10:28:40 +0200 Subject: [PATCH] completions: Remove -f from pacman -U pacman -U is intended to be used with (among others) files like this: # pacman -U ./linux-headers-5.6.2.arch1-2-x86_64.pkg.tar.zst Thus, let's enable file path completion for this kind of operation. --- share/completions/pacman.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish index 500010502..465b56adc 100644 --- a/share/completions/pacman.fish +++ b/share/completions/pacman.fish @@ -30,7 +30,7 @@ complete -c $progname -s Q -f -l query -n "$noopt" -d 'Query the package databas complete -c $progname -s R -f -l remove -n "$noopt" -d 'Remove packages from the system' complete -c $progname -s S -f -l sync -n "$noopt" -d 'Synchronize packages' complete -c $progname -s T -f -l deptest -n "$noopt" -d 'Check dependencies' -complete -c $progname -s U -f -l upgrade -n "$noopt" -d 'Upgrade or add a local package' +complete -c $progname -s U -l upgrade -n "$noopt" -d 'Upgrade or add a local package' complete -c $progname -s F -f -l files -n "$noopt" -d 'Query the files database' complete -c $progname -s V -f -l version -d 'Display version and exit' complete -c $progname -s h -f -l help -d 'Display help'