fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
99cae405c
master
1# localization: skip(private) 2function __fish_print_pacman_packages 3# Caches for 5 minutes 4type -q -f pacman|| return 1 5 6argparse i/installed r/repo=+ --$argv 7or return 1 8 9if set -q _flag_installed 10pacman -Q| string replace' ' \t 11return 0 12else if test ( count $_flag_repo ) -gt 0 13pacman -Sl$_flag_repo | string replace --regex'^(\S+) (\S+) .*' '$1/$2\tPackage' 14return 0 15else 16__fish_cached -t250 --"pacman -Ssq | sed -e 's/\$/\\tPackage/'" 17return 0 18end 19end