aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/apt-get.fish
diff options
context:
space:
mode:
authorGravatar maxried <maxried@users.noreply.github.com>2015-11-01 12:30:17 +0100
committerGravatar maxried <maxried@users.noreply.github.com>2015-11-01 12:30:17 +0100
commit0918ad6cee61e398bcdd2572100ef1faa578013e (patch)
treebb918dd1368ad914df10d3bf690731396d0fda02 /share/completions/apt-get.fish
parentd3bcee9e2e8056f49a4306d594fd656b4a18bcac (diff)
Improve apt-get completion
Added apt-get changelog sub-command completion.
Diffstat (limited to 'share/completions/apt-get.fish')
-rw-r--r--share/completions/apt-get.fish5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/completions/apt-get.fish b/share/completions/apt-get.fish
index 4037df08..3af7747d 100644
--- a/share/completions/apt-get.fish
+++ b/share/completions/apt-get.fish
@@ -2,7 +2,7 @@
function __fish_apt_no_subcommand --description 'Test if apt has yet to be given the subcommand'
for i in (commandline -opc)
- if contains -- $i update upgrade dselect-upgrade dist-upgrade install remove purge source build-dep check clean autoclean
+ if contains -- $i update upgrade dselect-upgrade dist-upgrade install remove purge source build-dep check clean autoclean changelog
return 1
end
end
@@ -11,7 +11,7 @@ end
function __fish_apt_use_package --description 'Test if apt command should have packages as potential completion'
for i in (commandline -opc)
- if contains -- $i contains install remove purge build-dep
+ if contains -- $i contains install remove purge build-dep changelog
return 0
end
end
@@ -26,6 +26,7 @@ complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'upgrade' --description
complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'dselect-upgrade' --description 'Use with dselect front-end'
complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'dist-upgrade' --description 'Distro upgrade'
complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'install' --description 'Install one or more packages'
+complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'changelog' --description 'Display changelog of one or more packages'
complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'purge' --description 'Remove and purge one or more packages'
complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'remove' --description 'Remove one or more packages'
complete -f -n '__fish_apt_no_subcommand' -c apt-get -a 'source' --description 'Fetch source packages'