diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-02-02 09:48:55 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-02-02 09:48:55 +0100 |
commit | 1688b2384f5f550a0527ced1e516e6096aa64f7c (patch) | |
tree | c07b1481ed3bd392f5da37d4e179633fda06a756 /share | |
parent | 0c94c2b9e8a98b1683bcc3079c02c93f3c62333e (diff) |
pacman: Stringify
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/pacman.fish | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/completions/pacman.fish b/share/completions/pacman.fish index 6fb573c5..2a5a44f4 100644 --- a/share/completions/pacman.fish +++ b/share/completions/pacman.fish @@ -4,11 +4,12 @@ set -l progname pacman -set -l listinstalled "(pacman -Q | tr ' ' \t)" +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)" -set -l listgroups "(pacman -Sg | sed 's/\(.*\)/\1\tPackage group/g')" +# Mask $1 so it won't be taken for a variable +set -l listgroups "(pacman -Sg | string replace -r '(.+)' '\$1\tPackage 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' |