mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
d591cebf44
This is used in at least 4 places, all of which have a bug in that they print "options" as a valid repo. It seems better to fix it once, especially given that there are tons of AUR helpers and pacman wrappers, all of which might need this info.
3 lines
195 B
Fish
3 lines
195 B
Fish
function __fish_print_pacman_repos --description "Print the repositories configured for arch's pacman package manager"
|
|
sed -n -e 's/\[\(.\+\)\]/\1/p' /etc/pacman.conf | grep -v "#\|options"
|
|
end
|