mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
completion(apt-mark): Add missing minimize-manual command & --color options (#10825)
* Update apt-mark.fish
This commit is contained in:
parent
cdeb3977c3
commit
2b19e1a09b
1 changed files with 4 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue