fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
0df6fa791
master
1function __fish_wajig_no_subcommand -d'Test if wajig has yet to be given the subcommand' 2for iin ( commandline -xpc) 3if contains --$i addcdrom auto-alts auto-clean auto-download auto-install\ 4 available bug build build-depend changelog clean commands daily-upgrade\ 5 dependents describe describe-new detail detail-new dist-upgrade docs download\ 6 file-download file-install file-remove find-file find-pkg fix-configure\ 7 fix-install fix-missing force help hold init install installr installrs\ 8 installs integrity large last-update list list-all list-alts list-cache\ 9 list-commands list-daemons list-files list-hold list-installed list-log\ 10 list-names list-orphans list-scripts list-section list-section list-status\ 11 list-wide local-dist-upgrade local-upgrade madison move new news new-upgrades\ 12 non-free orphans package policy purge purge-depend purge-orphans readme\ 13 recursive recommended reconfigure reinstall reload remove remove-depend\ 14 remove-orphans repackage reset restart rpminstall rpmtodeb search search-apt\ 15 setup show showdistupgrade showinstall showremove showupgrade size sizes\ 16 snapshot source start status status-match status-search stop suggested\ 17 tasksel toupgrade unhold unofficial update update-alts update-pci-ids\ 18 update-usb-ids upgrade versions whatis whichpkg 19return 1 20end 21end 22return 0 23end 24 25function __fish_wajig_use_package -d'Test if wajig command should have packages as potential completion' 26for iin ( commandline -xpc) 27if contains --$i contains bug build build-depend changelog dependents describe\ 28 detail hold install installr installrs installs list list-files news\ 29 package purge purge-depend readme recursive recommended reconfigure\ 30 reinstall remove remove-depend repackage show showinstall showremove\ 31 showupgrade size sizes source suggested unhold upgrade versions whatis 32return 0 33end 34end 35return 1 36end 37 38complete -c wajig -n __fish_wajig_use_package -a'(__fish_print_apt_packages)' -d Packages 39complete -c wajig -s q -l quiet -d'Do system commands everything quietly.' 40complete -c wajig -s n -l noauth -d'Allow packages from unauthenticated archives.' 41complete -c wajig -s s -l simulate -d'Trace but don\'t execute the sequence of underlying commands.' 42complete -c wajig -s t -l teaching -d'Trace the sequence of commands performed.' 43complete -c wajig -s y -l yes -d'Assume yes for any questions asked.' 44complete -f -n __fish_wajig_no_subcommand -c wajig -a addcdrom -d'Add a CD-ROM to the list of available sources of packages' 45complete -f -n __fish_wajig_no_subcommand -c wajig -a auto-alts -d'Mark the alternative to be auto set (using set priorities)' 46complete -f -n __fish_wajig_no_subcommand -c wajig -a auto-clean -d'Remove superseded deb files from the download cache' 47complete -f -n __fish_wajig_no_subcommand -c wajig -a auto-download -d'Do an update followed by a download of all updated packages' 48complete -f -n __fish_wajig_no_subcommand -c wajig -a auto-install -d'Perform an install without asking questions (non-interactive)' 49complete -f -n __fish_wajig_no_subcommand -c wajig -a available -d'List versions of packages available for installation' 50complete -f -n __fish_wajig_no_subcommand -c wajig -a bug -d'Check reported bugs in package using the Debian Bug Tracker' 51complete -f -n __fish_wajig_no_subcommand -c wajig -a build -d'Retrieve/unpack sources and build .deb for the named packages' 52complete -f -n __fish_wajig_no_subcommand -c wajig -a build-depend -d'Retrieve packages required to build listed packages' 53complete -f -n __fish_wajig_no_subcommand -c wajig -a changelog -d'Retrieve latest changelog for the package' 54complete -f -n __fish_wajig_no_subcommand -c wajig -a clean -d'Remove all deb files from the download cache' 55complete -f -n __fish_wajig_no_subcommand -c wajig -a commands -d'List all the JIG commands and one line descriptions for each' 56complete -f -n __fish_wajig_no_subcommand -c wajig -a daily-upgrade -d'Perform an update then a dist-upgrade' 57complete -f -n __fish_wajig_no_subcommand -c wajig -a dependents -d'List of packages which depend/recommend/suggest the package' 58complete -f -n __fish_wajig_no_subcommand -c wajig -a describe -d'One line description of packages (-v and -vv for more detail)' 59complete -f -n __fish_wajig_no_subcommand -c wajig -a describe-new -d'One line description of new packages' 60complete -f -n __fish_wajig_no_subcommand -c wajig -a detail -d'Provide a detailed description of package (describe -vv)' 61complete -f -n __fish_wajig_no_subcommand -c wajig -a detail-new -d'Provide a detailed description of new packages (describe -vv)' 62complete -f -n __fish_wajig_no_subcommand -c wajig -a dist-upgrade -d'Upgrade to new distribution (installed and new rqd packages)' 63complete -f -n __fish_wajig_no_subcommand -c wajig -a docs -d'Equivalent to help with -verbose=2' 64complete -f -n __fish_wajig_no_subcommand -c wajig -a download -d'Download package files ready for an install' 65complete -f -n __fish_wajig_no_subcommand -c wajig -a file-download -d'Download packages listed in file ready for an install' 66complete -f -n __fish_wajig_no_subcommand -c wajig -a file-install -d'Install packages listed in a file' 67complete -f -n __fish_wajig_no_subcommand -c wajig -a file-remove -d'Remove packages listed in a file' 68complete -f -n __fish_wajig_no_subcommand -c wajig -a find-file -d'Search for a file within installed packages' 69complete -f -n __fish_wajig_no_subcommand -c wajig -a find-pkg -d'Search for an unofficial Debian package at apt-get.org' 70complete -f -n __fish_wajig_no_subcommand -c wajig -a fix-configure -d'Perform dpkg --configure -a (to fix interrupted configure)' 71complete -f -n __fish_wajig_no_subcommand -c wajig -a fix-install -d'Perform apt-get -f install (to fix broken dependencies)' 72complete -f -n __fish_wajig_no_subcommand -c wajig -a fix-missing -d'Perform apt-get --fix-missing upgrade' 73complete -f -n __fish_wajig_no_subcommand -c wajig -a force -d'Install packages and ignore file overwrites and depends' 74complete -f -n __fish_wajig_no_subcommand -c wajig -a help -d'Print documentation (detail depends on --verbose)' 75complete -f -n __fish_wajig_no_subcommand -c wajig -a hold -d'Place listed packages on hold so they are not upgraded' 76complete -f -n __fish_wajig_no_subcommand -c wajig -a init -d'Initialise or reset the JIG archive files' 77complete -f -n __fish_wajig_no_subcommand -c wajig -a install -d'Install (or upgrade) one or more packages or .deb files' 78complete -f -n __fish_wajig_no_subcommand -c wajig -a installr -d'Install package and associated recommended packages' 79complete -f -n __fish_wajig_no_subcommand -c wajig -a installrs -d'Install package and recommended and suggested packages' 80complete -f -n __fish_wajig_no_subcommand -c wajig -a installs -d'Install package and associated suggested packages' 81complete -f -n __fish_wajig_no_subcommand -c wajig -a integrity -d'Check the integrity of installed packages (through checksums)' 82complete -f -n __fish_wajig_no_subcommand -c wajig -a large -d'List size of all large (>10MB) installed packages' 83complete -f -n __fish_wajig_no_subcommand -c wajig -a last-update -d'Identify when an update was last performed' 84complete -f -n __fish_wajig_no_subcommand -c wajig -a list -d'List the status and description of installed packages' 85complete -f -n __fish_wajig_no_subcommand -c wajig -a list-all -d'List a one line description of given or all packages' 86complete -f -n __fish_wajig_no_subcommand -c wajig -a list-alts -d'List the objects that can have alternatives configured' 87complete -f -n __fish_wajig_no_subcommand -c wajig -a list-cache -d'List the contents of the download cache' 88complete -f -n __fish_wajig_no_subcommand -c wajig -a list-commands -d'List all the JIG commands and one line descriptions for each' 89complete -f -n __fish_wajig_no_subcommand -c wajig -a list-daemons -d'List the daemons that JIG can start/stop/restart' 90complete -f -n __fish_wajig_no_subcommand -c wajig -a list-files -d'List the files that are supplied by the named package' 91complete -f -n __fish_wajig_no_subcommand -c wajig -a list-hold -d'List those packages on hold' 92complete -f -n __fish_wajig_no_subcommand -c wajig -a list-installed -d'List packages (with optional argument substring) installed' 93complete -f -n __fish_wajig_no_subcommand -c wajig -a list-log -d'List the contents of the install/remove log file (filtered)' 94complete -f -n __fish_wajig_no_subcommand -c wajig -a list-names -d'List all known packages or those containing supplied string' 95complete -f -n __fish_wajig_no_subcommand -c wajig -a list-orphans -d'List libraries not required by any installed package' 96complete -f -n __fish_wajig_no_subcommand -c wajig -a list-scripts -d'List the control scripts of the package of deb file' 97complete -f -n __fish_wajig_no_subcommand -c wajig -a list-section -d'List packages that belong to a specific section' 98complete -f -n __fish_wajig_no_subcommand -c wajig -a list-section -d'List the sections that are available' 99complete -f -n __fish_wajig_no_subcommand -c wajig -a list-status -d'Same as list but only prints first two columns, not truncated' 100complete -f -n __fish_wajig_no_subcommand -c wajig -a list-wide -d'Same as list but avoids truncating package names' 101complete -f -n __fish_wajig_no_subcommand -c wajig -a local-dist-upgrade -d'Dist-upgrade using packages already downloaded' 102complete -f -n __fish_wajig_no_subcommand -c wajig -a local-upgrade -d'Upgrade using packages already downloaded, but not any others' 103complete -f -n __fish_wajig_no_subcommand -c wajig -a madison -d'Runs the madison command of apt-cache.' 104complete -f -n __fish_wajig_no_subcommand -c wajig -a move -d'Move packages in the download cache to a local Debian mirror' 105complete -f -n __fish_wajig_no_subcommand -c wajig -a new -d'List packages that became available since last update' 106complete -f -n __fish_wajig_no_subcommand -c wajig -a news -d'Obtain the latest news about the package' 107complete -f -n __fish_wajig_no_subcommand -c wajig -a new-upgrades -d'List packages newly available for upgrading' 108complete -f -n __fish_wajig_no_subcommand -c wajig -a non-free -d'List installed packages that do not meet the DFSG' 109complete -f -n __fish_wajig_no_subcommand -c wajig -a orphans -d'List libraries not required by any installed package' 110complete -f -n __fish_wajig_no_subcommand -c wajig -a package -d'Generate a .deb file for an installed package' 111complete -f -n __fish_wajig_no_subcommand -c wajig -a policy -d'From preferences file show priorities/policy (available)' 112complete -f -n __fish_wajig_no_subcommand -c wajig -a purge -d'Remove one or more packages and configuration files' 113complete -f -n __fish_wajig_no_subcommand -c wajig -a purge-depend -d'Purge package and those it depend on and not required by others' 114complete -f -n __fish_wajig_no_subcommand -c wajig -a purge-orphans -d'Purge orphaned libraries (not required by installed packages)' 115complete -f -n __fish_wajig_no_subcommand -c wajig -a readme -d'Display the package\'s README file from /usr/share/doc' 116complete -f -n __fish_wajig_no_subcommand -c wajig -a recursive -d'Download package and any packages it depends on' 117complete -f -n __fish_wajig_no_subcommand -c wajig -a recommended -d'Install package and associated recommended packages' 118complete -f -n __fish_wajig_no_subcommand -c wajig -a reconfigure -d'Reconfigure the named installed packages or run gkdebconf' 119complete -f -n __fish_wajig_no_subcommand -c wajig -a reinstall -d'Reinstall each of the named packages' 120complete -f -n __fish_wajig_no_subcommand -c wajig -a reload -d'Reload daemon configs, e.g., gdm, apache (see list-daemons)' 121complete -f -n __fish_wajig_no_subcommand -c wajig -a remove -d'Remove one or more packages (see also purge)' 122complete -f -n __fish_wajig_no_subcommand -c wajig -a remove-depend -d'Remove package and its dependees not required by others' 123complete -f -n __fish_wajig_no_subcommand -c wajig -a remove-orphans -d'Remove orphaned libraries (not required by installed packages)' 124complete -f -n __fish_wajig_no_subcommand -c wajig -a repackage -d'Generate a .deb file for an installed package' 125complete -f -n __fish_wajig_no_subcommand -c wajig -a reset -d'Initialise or reset the JIG archive files' 126complete -f -n __fish_wajig_no_subcommand -c wajig -a restart -d'Stop then start a daemon, e.g., gdm, apache (see list-daemons)' 127complete -f -n __fish_wajig_no_subcommand -c wajig -a rpminstall -d'Install a RedHat .rpm package' 128complete -f -n __fish_wajig_no_subcommand -c wajig -a rpmtodeb -d'Convert a RedHat .rpm file to a Debian .deb file' 129complete -f -n __fish_wajig_no_subcommand -c wajig -a search -d'Search for packages containing listed words' 130complete -f -n __fish_wajig_no_subcommand -c wajig -a search-apt -d'Find local Debian archives suitable for sources.list' 131complete -f -n __fish_wajig_no_subcommand -c wajig -a setup -d'Configure the sources.list file which locates Debian archives' 132complete -f -n __fish_wajig_no_subcommand -c wajig -a show -d'Provide a detailed description of package [same as detail]' 133complete -f -n __fish_wajig_no_subcommand -c wajig -a showdistupgrade -d'Trace the steps that a dist-upgrade would perform' 134complete -f -n __fish_wajig_no_subcommand -c wajig -a showinstall -d'Trace the steps that an install would perform' 135complete -f -n __fish_wajig_no_subcommand -c wajig -a showremove -d'Trace the steps that a remove would perform' 136complete -f -n __fish_wajig_no_subcommand -c wajig -a showupgrade -d'Trace the steps that an upgrade would perform' 137complete -f -n __fish_wajig_no_subcommand -c wajig -a size -d'Print out the size (in K) of all, or listed, installed packages' 138complete -f -n __fish_wajig_no_subcommand -c wajig -a sizes -d'Print out the size (in K) of all, or listed, installed packages' 139complete -f -n __fish_wajig_no_subcommand -c wajig -a snapshot -d'Generates list of package=version for all installed packages' 140complete -f -n __fish_wajig_no_subcommand -c wajig -a source -d'Retrieve and unpack sources for the named packages' 141complete -f -n __fish_wajig_no_subcommand -c wajig -a start -d'Start a daemon, e.g., gdm, apache (see list-daemons)' 142complete -f -n __fish_wajig_no_subcommand -c wajig -a status -d'Show the version and available version of packages' 143complete -f -n __fish_wajig_no_subcommand -c wajig -a status-match -d'Show the version and available version of matching packages' 144complete -f -n __fish_wajig_no_subcommand -c wajig -a status-search -d'Show the version and available version of matching packages' 145complete -f -n __fish_wajig_no_subcommand -c wajig -a stop -d'Stop a daemon, e.g., gdm, apache (see list-daemons)' 146complete -f -n __fish_wajig_no_subcommand -c wajig -a suggested -d'Install package and associated suggested packages' 147complete -f -n __fish_wajig_no_subcommand -c wajig -a tasksel -d'Run the Gnome task selector to install groups of packages' 148complete -f -n __fish_wajig_no_subcommand -c wajig -a toupgrade -d'List packages with newer versions available for upgrading' 149complete -f -n __fish_wajig_no_subcommand -c wajig -a unhold -d'Remove listed packages from hold so they are again upgraded' 150complete -f -n __fish_wajig_no_subcommand -c wajig -a unofficial -d'Search for an unofficial Debian package at apt-get.org' 151complete -f -n __fish_wajig_no_subcommand -c wajig -a update -d'Update the list of down-loadable packages' 152complete -f -n __fish_wajig_no_subcommand -c wajig -a update-alts -d'Update default alternative for things like x-window-manager' 153complete -f -n __fish_wajig_no_subcommand -c wajig -a update-pci-ids -d'Updates the local list of PCI ids from the internet master list' 154complete -f -n __fish_wajig_no_subcommand -c wajig -a update-usb-ids -d'Updates the local list of USB ids from the internet master list' 155complete -f -n __fish_wajig_no_subcommand -c wajig -a upgrade -d'Upgrade all of the installed packages or just those listed' 156complete -f -n __fish_wajig_no_subcommand -c wajig -a versions -d'List version and distribution of (all) packages.' 157complete -f -n __fish_wajig_no_subcommand -c wajig -a whatis -d'A synonym for describe' 158complete -f -n __fish_wajig_no_subcommand -c wajig -a whichpkg -d'Find the package that supplies the given command or file'