mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
functions/__fish_print_pacman_repos.fish: fix
This function return wrong data. Fix this.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user