diff options
author | Bogdan Sinitsyn <bogdan.sinitsyn@gmail.com> | 2015-12-23 12:09:20 +0300 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-12-23 20:33:57 +0100 |
commit | 1a3bcf63bc46575adb33bd0cdeacc98b8341ca68 (patch) | |
tree | 3e065b010378556568497525cdbdedc7ce0798fc /share/completions | |
parent | d6d3977f3d66dad6fdc77b648c4e96f2c1043154 (diff) |
Add database completion for pacman
Diffstat (limited to 'share/completions')
-rw-r--r-- | share/completions/pacman.fish | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish index 30453cf6..df951843 100644 --- a/share/completions/pacman.fish +++ b/share/completions/pacman.fish @@ -1,6 +1,6 @@ # Completions for pacman # Author: Giorgio Lando <patroclo7@gmail.com> -# Updated by maxfl, SanskritFritz, faho +# Updated by maxfl, SanskritFritz, faho, f1u77y set -l progname pacman @@ -112,6 +112,12 @@ complete -c $progname -n $sync -s w -l downloadonly -d 'Only download the target complete -c $progname -n $sync -s y -l refresh -d 'Download fresh copy of the package list' complete -c $progname -n "$argument; and $sync" -xa "$listall $listgroups" +# Database options +set -l has_db_opt '__fish_contains_opt asdeps asexplicit' +complete -c $progname -n "$database; and not $has_db_opt" -xa --asdeps -d 'Mark PACKAGE as dependency' +complete -c $progname -n "$database; and not $has_db_opt" -xa --asexplicit -d 'Mark PACKAGE as explicitly installed' +complete -c $progname -n "$has_db_opt; and $argument; and $database" -xa "$listinstalled" + # Upgrade options # Theoretically, pacman reads packages in all formats that libarchive supports # In practice, it's going to be tar.xz or tar.gz |