fish-shell/share/completions/xbps-uhelper.fish
Fabian Homborg 04d7d89020 __fish_print_packages: Extract the rest
Of note: The rpm/yum thing seems to be coupled, so I put it into one
function that tries the yum helper and uses the rpm path otherwise.
Zypper is already its own thing, so this should only be used for yum
and probably dnf (does that still have the helper?)

Zypper can be dropped, as that already used a separate function in the file.

Apk can just be inlined - it's literally one line for installed and another for all packages.
2020-12-22 17:10:02 +01:00

12 lines
599 B
Fish

# Completions for xbps-uhelper
# Author: Allen Sobot <chilledfrogs@disroot.org>
set -l progname xbps-uhelper
set -l actions binpkgarch binpkgver cmpver getpkgdepname getpkgdepversion getpkgname getpkgrevision getpkgversion pkgmatch version real-version
complete -c $progname -f -a "$actions (__fish_print_xbps_packages -i)"
complete -c $progname -s C -d 'Path to xbps.conf file.' -rF
complete -c $progname -s d -d 'Debugging messages to stderr.'
complete -c $progname -s r -d 'Path to rootdir.' -xa "(__fish_complete_directories)"
complete -c $progname -s V -d 'Prints the XBPS release version.'