fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian Homborg__fish_print_packages: Extract the rest04d7d8902

master
1.1 KiB19 linesraw
1# xbps-alternatives
2# Author: Allen Sobot <chilledfrogs@disroot.org>
3
4set -l progname xbps-alternatives
5
6set -l listinstalled "(__fish_print_xbps_packages -i)"
7
8complete -c $progname -f
9complete -c $progname -a "$listinstalled"
10
11complete -c $progname -s C -d 'Specifies a path to the XBPS configuration directory.' -xa "(__fish_complete_directories)"
12complete -c $progname -s d -d 'Enables extra debugging shown to stderr.'
13complete -c $progname -s g -d 'Alternative group name to match.  To be used with the set mode.'
14complete -c $progname -s h -d 'Show the help message.'
15complete -c $progname -s r -d 'Specifies a full path for the target root directory.' -xa "(__fish_complete_directories)"
16complete -c $progname -s v -d 'Enables verbose messages.'
17complete -c $progname -s V -d 'Show the version information.'
18complete -c $progname -s l -n "not __fish_contains_opt -s s" -d 'Lists all current alternative groups or only from PKG, or just a specific group with -g.'
19complete -c $progname -s s -n "not __fish_contains_opt -s l" -d 'Set alternative groups specified by PKG or just a specific group with -g.'