mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 13:24:01 +08:00
04d7d89020
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.
13 lines
599 B
Fish
13 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.'
|