fish-shell/share/functions/__fish_print_pacman_repos.fish

4 lines
195 B
Fish
Raw Normal View History

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