aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/pacman.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-25 13:22:09 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-25 13:37:39 +0200
commitd591cebf4463e42569400bbcbaba5e16dcad734b (patch)
treecf38559cdc498291b4b0d077462c62861c709e3b /share/completions/pacman.fish
parent8abb19aaca21f1a6b0d422f8f16ab11e38389f58 (diff)
Introduce __fish_print_pacman_repos helper
This is used in at least 4 places, all of which have a bug in that they print "options" as a valid repo. It seems better to fix it once, especially given that there are tons of AUR helpers and pacman wrappers, all of which might need this info.
Diffstat (limited to 'share/completions/pacman.fish')
-rw-r--r--share/completions/pacman.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish
index f96cdcbf..30453cf6 100644
--- a/share/completions/pacman.fish
+++ b/share/completions/pacman.fish
@@ -7,7 +7,7 @@ set -l progname pacman
set -l listinstalled "(pacman -Q | tr ' ' \t)"
# This might be an issue if another package manager is also installed (e.g. for containers)
set -l listall "(__fish_print_packages)"
-set -l listrepos "(grep '^\[.\+\]' /etc/pacman.conf | sed 's/[]\[]//g')"
+set -l listrepos "(__fish_print_pacman_repos)"
set -l listgroups "(pacman -Sg | sed 's/\(.*\)/\1\tPackage group/g')"
set -l noopt 'not __fish_contains_opt -s S -s D -s Q -s R -s U -s T database query sync remove upgrade deptest'