fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a9618477e
master
1#apt-cache 2complete -c apt-cache -s h -l help -d"Display help and exit" 3complete -f -c apt-cache -a gencaches -d"Build apt cache" 4complete -x -c apt-cache -a showpkg -d"Show package info" 5complete -f -c apt-cache -a stats -d"Show cache statistics" 6complete -x -c apt-cache -a showsrc -d"Show source package" 7complete -f -c apt-cache -a dump -d"Show packages in cache" 8complete -f -c apt-cache -a dumpavail -d"Print available list" 9complete -f -c apt-cache -a unmet -d"List unmet dependencies in cache" 10complete -x -c apt-cache -a show -d"Display package record" 11complete -x -c apt-cache -a search -d"Search packagename by REGEX" 12complete -c apt-cache -l full -a search -d"Search full package name" 13complete -x -c apt-cache -l names-only -a search -d"Search packagename only" 14complete -x -c apt-cache -a depends -d"List dependencies for the package" 15complete -x -c apt-cache -a rdepends -d"List reverse dependencies for the package" 16complete -x -c apt-cache -a pkgnames -d"Print package name by prefix" 17complete -x -c apt-cache -a dotty -d"Generate dotty output for packages" 18complete -x -c apt-cache -a policy -d"Debug preferences file" 19complete -r -c apt-cache -s p -l pkg-cache -d"Select file to store package cache" 20complete -r -c apt-cache -s s -l src-cache -d"Select file to store source cache" 21complete -f -c apt-cache -s q -l quiet -d"Quiet mode" 22complete -f -c apt-cache -s i -l important -d"Print important dependencies" 23complete -f -c apt-cache -s a -l all-versions -d"Print full records" 24complete -f -c apt-cache -s g -l generate -d"Auto-gen package cache" 25complete -f -c apt-cache -l all-names -d"Print all names" 26complete -f -c apt-cache -l recurse -d"Dep and rdep recursive" 27complete -f -c apt-cache -l installed -d"Limit to installed" 28complete -f -c apt-cache -s v -l version -d"Display version and exit" 29complete -r -c apt-cache -s c -l config-file -d"Specify config file" 30complete -x -c apt-cache -s o -l option -d"Specify options" 31 32function __fish_apt-cache_use_package -d'Test if apt command should have packages as potential completion' 33for iin ( commandline -xpc) 34if contains --$i contains show showpkg showsrc depends rdepends dotty policy 35return 0 36end 37end 38return 1 39end 40 41complete -c apt-cache -n __fish_apt-cache_use_package -a'(__fish_print_apt_packages)' -d Package