diff options
author | David Paleino <dapal@debian.org> | 2011-11-01 20:32:45 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2011-11-01 20:32:45 +0100 |
commit | 15211e74fe915e07fb97363b7d5adfd7ca81d1c9 (patch) | |
tree | 341627a73e9b695df5b25284b9f21e7d318c2e4b | |
parent | c0ea434660e9ab99c5bdae5a6d577dcfa16a64de (diff) | |
download | bash-completion-15211e74fe915e07fb97363b7d5adfd7ca81d1c9.tar.gz |
Add 'versions' command to aptitude (Debian: #604393)
-rw-r--r-- | completions/aptitude | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/aptitude b/completions/aptitude index 06c3faea..cf18c66b 100644 --- a/completions/aptitude +++ b/completions/aptitude @@ -28,7 +28,7 @@ _aptitude() local special i for (( i=0; i < ${#words[@]}-1; i++ )); do - if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag) ]]; then + if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag|versions) ]]; then special=${words[i]} fi #exclude some mutually exclusive options @@ -40,7 +40,7 @@ _aptitude() case $special in install|hold|markauto|unmarkauto|dist-upgrade|full-upgrade| \ download|show|changelog|why|why-not|build-dep|add-user-tag| \ - remove-user-tag) + remove-user-tag|versions) COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) return 0 ;; @@ -81,7 +81,7 @@ _aptitude() hold unhold purge markauto unmarkauto why why-not \ dist-upgrade full-upgrade download search show \ forbid-version changelog keep-all build-dep \ - add-user-tag remove-user-tag' -- "$cur" ) ) + add-user-tag remove-user-tag versions' -- "$cur" ) ) fi return 0 |