mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Complete apt-get purge identical to apt-get remove
As apt-get purge really has the same operations as apt-get remove, there is not reason to handle them differently in its completion file.
This commit is contained in:
parent
991c900fc6
commit
843944f558
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
function __fish_apt_no_subcommand --description 'Test if apt has yet to be given the subcommand'
|
function __fish_apt_no_subcommand --description 'Test if apt has yet to be given the subcommand'
|
||||||
for i in (commandline -opc)
|
for i in (commandline -opc)
|
||||||
if contains -- $i update upgrade dselect-upgrade dist-upgrade install remove source build-dep check clean autoclean
|
if contains -- $i update upgrade dselect-upgrade dist-upgrade install remove purge source build-dep check clean autoclean
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -11,7 +11,7 @@ end
|
|||||||
|
|
||||||
function __fish_apt_use_package --description 'Test if apt command should have packages as potential completion'
|
function __fish_apt_use_package --description 'Test if apt command should have packages as potential completion'
|
||||||
for i in (commandline -opc)
|
for i in (commandline -opc)
|
||||||
if contains -- $i contains install remove build-dep
|
if contains -- $i contains install remove purge build-dep
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user