fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
2b19e1a09
master
1#completion for apt-mark 2 3function __fish_apt_no_subcommand -d'Test if apt has yet to be given the subcommand' 4for iin ( commandline -xpc) 5if contains --$i auto manual minimize-manual hold unhold showauto showmanual showhold 6return 1 7end 8end 9return 0 10end 11 12function __fish_apt_use_package -d'Test if apt command should have packages as potential completion' 13for iin ( commandline -xpc) 14if contains --$i contains auto manual hold unhold 15return 0 16end 17end 18return 1 19end 20 21complete -c apt-mark -n __fish_apt_use_package -a'(__fish_print_apt_packages)' -d Package 22 23complete -c apt-mark -s h -l help -d'Display help and exit' 24complete -f -n __fish_apt_no_subcommand -c apt-mark -a auto -d'Mark a package as automatically installed' 25complete -f -n __fish_apt_no_subcommand -c apt-mark -a manual -d'Mark a package as manually installed' 26complete -f -n __fish_apt_no_subcommand -c apt-mark -a minimize-manual -d'Mark all dependencies of meta packages as auto' 27complete -f -n __fish_apt_no_subcommand -c apt-mark -a hold -d'Hold a package, prevent automatic installation or removal' 28complete -f -n __fish_apt_no_subcommand -c apt-mark -a unhold -d'Cancel a hold on a package' 29complete -f -n __fish_apt_no_subcommand -c apt-mark -a showauto -d'Show automatically installed packages' 30complete -f -n __fish_apt_no_subcommand -c apt-mark -a showmanual -d'Show manually installed packages' 31complete -f -n __fish_apt_no_subcommand -c apt-mark -a showhold -d'Show held packages' 32complete -c apt-mark -s v -l version -d'Display version and exit' 33complete -r -c apt-mark -s c -l config-file -d'Specify a config file' 34complete -r -c apt-mark -s o -l option -d'Set a config option' 35complete -c apt-mark -l color -d'Turn colors on' 36complete -c apt-mark -l no-color -d'Turn colors off' 37complete -r -c apt-mark -s f -l file -d'Write package statistics to a file'