functions/__fish_print_pacman_repos.fish: fix

This function return wrong data.
Fix this.
This commit is contained in:
Akatsuki 2019-10-25 17:05:39 +08:00 committed by Fabian Homborg
parent 2b9dd4595c
commit d1214edc7a

View File

@ -1,3 +1,3 @@
function __fish_print_pacman_repos --description "Print the repositories configured for arch's pacman package manager"
string replace -r -a "\[(.+)\]" "\1" </etc/pacman.conf | string match -r -v "^#|options"
string match -er "\[.*\]" </etc/pacman.conf | string match -r -v "^#|options" | string replace -ra "\[|\]" ""
end