fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
1963b0830
master
1#completion for aptitude 2 3function __fish_apt_no_subcommand -d'Test if aptitude has yet to be given the subcommand' 4for iin ( commandline -xpc) 5if contains --$i autoclean clean forget-new keep-all update safe-upgrade changelog full-upgrade download forbid-version hold install keep markauto purge reinstall remove show unhold unmarkauto search help 6return 1 7end 8end 9return 0 10end 11 12function __fish_apt_use_package -d'Test if aptitude command should have packages as potential completion' 13for iin ( commandline -xpc) 14if contains --$i changelog full-upgrade download forbid-version hold install keep-all markauto purge reinstall remove show showrc unhold unmarkauto why why-not versions 15return 0 16end 17end 18return 1 19end 20 21complete -c aptitude -n __fish_apt_use_package -a'(__fish_print_apt_packages)' -d Package 22 23complete -c aptitude -s h -l help -d'Display a brief help message. Identical to the help action' 24complete -f -n __fish_apt_no_subcommand -c aptitude -a autoclean -d'Remove any cached packages which can no longer be downloaded' 25complete -f -n __fish_apt_no_subcommand -c aptitude -a clean -d'Remove all downloaded .deb files from the package cache directory' 26complete -f -n __fish_apt_no_subcommand -c aptitude -a forget-new -d'Forget all internal information about what packages are \'new\'' 27complete -f -n __fish_apt_no_subcommand -c aptitude -a keep-all -d'Cancel all scheduled actions on all packages' 28complete -f -n __fish_apt_no_subcommand -c aptitude -a update -d'Update the list of available packages from the apt sources' 29complete -f -n __fish_apt_no_subcommand -c aptitude -a safe-upgrade -d'Upgrade installed packages to their most recent version' 30complete -f -n __fish_apt_no_subcommand -c aptitude -a changelog -d'Download and displays the Debian changelog for the packages' 31complete -f -n __fish_apt_no_subcommand -c aptitude -a full-upgrade -d'Upgrade, removing or installing packages as necessary' 32complete -f -n __fish_apt_no_subcommand -c aptitude -a download -d'Download the packages to the current directory' 33complete -f -n __fish_apt_no_subcommand -c aptitude -a forbid-version -d'Forbid the upgrade to a particular version' 34complete -f -n __fish_apt_no_subcommand -c aptitude -a hold -d'Ignore the packages by future upgrade commands' 35complete -f -n __fish_apt_no_subcommand -c aptitude -a install -d'Install the packages' 36complete -f -n __fish_apt_no_subcommand -c aptitude -a keep -d'Cancel any scheduled actions on the packages' 37complete -f -n __fish_apt_no_subcommand -c aptitude -a markauto -d'Mark packages as automatically installed' 38complete -f -n __fish_apt_no_subcommand -c aptitude -a purge -d'Remove and delete all associated configuration and data files' 39complete -f -n __fish_apt_no_subcommand -c aptitude -a reinstall -d'Reinstall the packages' 40complete -f -n __fish_apt_no_subcommand -c aptitude -a remove -d'Remove the packages' 41complete -f -n __fish_apt_no_subcommand -c aptitude -a showsrc -d'Display detailed information about the source packages (apt wrapper)' 42complete -f -n __fish_apt_no_subcommand -c aptitude -a show -d'Display detailed information about the packages' 43complete -f -n __fish_apt_no_subcommand -c aptitude -a unhold -d'Consider the packages by future upgrade commands' 44complete -f -n __fish_apt_no_subcommand -c aptitude -a unmarkauto -d'Mark packages as manually installed' 45complete -f -n __fish_apt_no_subcommand -c aptitude -a search -d'Search for packages matching one of the patterns' 46complete -f -n __fish_apt_no_subcommand -c aptitude -a help -d'Display brief summary of the available commands and options' 47complete -f -n __fish_apt_no_subcommand -c aptitude -a why -d'Explain why a particular package should be installed' 48complete -f -n __fish_apt_no_subcommand -c aptitude -a why-not -d'Explain why a particular package cannot be installed' 49complete -f -n __fish_apt_no_subcommand -c aptitude -a versions -d'Displays the versions of specified packages' 50 51complete -c aptitude -s D -l show-deps -d'Show explanations of automatic installations and removals' 52complete -c aptitude -s d -l download-only -d'Download only' 53complete -c aptitude -s f -l fix-broken -d'Aggressively try to fix broken packages' 54complete -c aptitude -l purge-unused -d'Purge packages that are not required by any installed package' 55complete -c aptitude -s P -l prompt -d'Always display a prompt' 56complete -c aptitude -s R -l without-recommends -d'Do not treat recommendations as dependencies' 57complete -c aptitude -s r -l with-recommends -d'Treat recommendations as dependencies' 58complete -c aptitude -s s -l simulate -d'Don\'t perform the actions. Just show them' 59complete -c aptitude -l schedule-only -d'Schedule operations to be performed in the future' 60complete -c aptitude -s q -l quiet -d'Suppress incremental progress indicators' 61complete -c aptitude -s V -l show-versions -d'Show which versions of packages will be installed' 62complete -c aptitude -s v -l verbose -d'Display extra information' 63complete -c aptitude -l version -d'Display the version of aptitude and compile information' 64complete -c aptitude -l visual-preview -d'Start up the visual interface and display its preview screen' 65complete -c aptitude -s y -l assume-yes -d'Assume the answer yes for all question prompts' 66complete -c aptitude -s Z -d'Show how much disk space will be used or freed' 67complete -c aptitude -s u -d'Download new package lists on startup (terminal interface only)' 68complete -r -c aptitude -s F -l display-format -d'Specify the format to be used by the search command' 69complete -r -c aptitude -s t -l target-release -d'Set the release from which packages should be installed' 70complete -r -c aptitude -s O -l sort -d'Specify the order for the output from the search command' 71complete -r -c aptitude -s o -d'Set a configuration file option directly' 72complete -r -c aptitude -s w -l width -d'Specify the display width for the output from the search command'