From 2b19e1a09b835ef99213870a031caf5756bd6d09 Mon Sep 17 00:00:00 2001 From: vp2177 Date: Thu, 14 Nov 2024 22:01:54 +0000 Subject: [PATCH] completion(apt-mark): Add missing minimize-manual command & --color options (#10825) * Update apt-mark.fish --- share/completions/apt-mark.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/completions/apt-mark.fish b/share/completions/apt-mark.fish index 7b99df02a..3ca117d39 100644 --- a/share/completions/apt-mark.fish +++ b/share/completions/apt-mark.fish @@ -2,7 +2,7 @@ function __fish_apt_no_subcommand -d 'Test if apt has yet to be given the subcommand' for i in (commandline -xpc) - if contains -- $i auto manual hold unhold showauto showmanual showhold + if contains -- $i auto manual minimize-manual hold unhold showauto showmanual showhold return 1 end end @@ -23,6 +23,7 @@ complete -c apt-mark -n __fish_apt_use_package -a '(__fish_print_apt_packages)' complete -c apt-mark -s h -l help -d 'Display help and exit' complete -f -n __fish_apt_no_subcommand -c apt-mark -a auto -d 'Mark a package as automatically installed' complete -f -n __fish_apt_no_subcommand -c apt-mark -a manual -d 'Mark a package as manually installed' +complete -f -n __fish_apt_no_subcommand -c apt-mark -a minimize-manual -d 'Mark all dependencies of meta packages as auto' complete -f -n __fish_apt_no_subcommand -c apt-mark -a hold -d 'Hold a package, prevent automatic installation or removal' complete -f -n __fish_apt_no_subcommand -c apt-mark -a unhold -d 'Cancel a hold on a package' complete -f -n __fish_apt_no_subcommand -c apt-mark -a showauto -d 'Show automatically installed packages' @@ -31,4 +32,6 @@ complete -f -n __fish_apt_no_subcommand -c apt-mark -a showhold -d 'Show held pa complete -c apt-mark -s v -l version -d 'Display version and exit' complete -r -c apt-mark -s c -l config-file -d 'Specify a config file' complete -r -c apt-mark -s o -l option -d 'Set a config option' +complete -c apt-mark -l color -d 'Turn colors on' +complete -c apt-mark -l no-color -d 'Turn colors off' complete -r -c apt-mark -s f -l file -d 'Write package statistics to a file'