mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
functions/__fish_print_pacman_repos.fish: fix
This function return wrong data. Fix this.
This commit is contained in:
parent
2b9dd4595c
commit
d1214edc7a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user