fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2function __fish_print_eopkg_packages 3type -q -f eopkg|| return 1 4 5argparse i/installed --$argv 6or return 1 7 8# If the cache is less than max_age, we do not recalculate it 9# Determine whether to print installed/available packages 10 11if set -q _flag_installed 12# Remove package version information from output and pipe into cache file 13__fish_cached -t500 -k eopkg-installed --"eopkg list-installed -N | cut -d ' ' -f 1" 14return 0 15else 16# Remove package version information from output and pipe into cache file 17__fish_cached -t500 -k eopkg-available --"eopkg list-available -N | cut -d ' ' -f 1" 18return 0 19end 20return 1 21end