aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/pacman.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-10 15:35:01 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-10 15:35:01 +0100
commitb6e058985be524ba94544d541abc1ca9c4817133 (patch)
tree3ed0aeebab76c1eed871824ea72f0aafcba77724 /share/completions/pacman.fish
parentbc9e3c7546957dbcc7b6ef8e560bb7facec1a6f3 (diff)
Fix "replacement string too large" error in pacman completion
Turns out we can skip using string altogether, thanks to the magic of the cartesian product.
Diffstat (limited to 'share/completions/pacman.fish')
-rw-r--r--share/completions/pacman.fish3
1 files changed, 1 insertions, 2 deletions
diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish
index 2a5a44f4..d01367f7 100644
--- a/share/completions/pacman.fish
+++ b/share/completions/pacman.fish
@@ -8,8 +8,7 @@ set -l listinstalled "(pacman -Q | string replace ' ' \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 "(__fish_print_pacman_repos)"
-# Mask $1 so it won't be taken for a variable
-set -l listgroups "(pacman -Sg | string replace -r '(.+)' '\$1\tPackage group')"
+set -l listgroups "(pacman -Sg)\t'Package Group'"
set -l noopt 'not __fish_contains_opt -s S -s D -s Q -s R -s U -s T -s F database query sync remove upgrade deptest files'
set -l database '__fish_contains_opt -s D database'