mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 03:13:37 +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.
15 lines
900 B
Fish
15 lines
900 B
Fish
# Completions for the `dpkg-reconfigure` command
|
|
|
|
complete -f -c dpkg-reconfigure -a '(__fish_print_apt_packages)' -d Package
|
|
|
|
# Support flags
|
|
complete -x -f -c dpkg-reconfigure -s h -l help -d 'Display help'
|
|
|
|
# General options
|
|
complete -f -c dpkg-reconfigure -s f -l frontend -r -a "dialog readline noninteractive gnome kde editor web" -d 'Set configuration frontend'
|
|
complete -f -c dpkg-reconfigure -s p -l priority -r -a "low medium high critical" -d 'Set priority threshold'
|
|
complete -f -c dpkg-reconfigure -l default-priority -d "Use current default ("(echo get debconf/priority | debconf-communicate | string match -r '\w+$')") priority threshold"
|
|
complete -f -c dpkg-reconfigure -s u -l unseen-only -d 'Show only unseen question'
|
|
complete -f -c dpkg-reconfigure -l force -d 'Reconfigure also inconsistent packages'
|
|
complete -f -c dpkg-reconfigure -l no-reload -d 'Prevent reloading templates'
|