summaryrefslogtreecommitdiff
path: root/completions/aptitude
diff options
context:
space:
mode:
Diffstat (limited to 'completions/aptitude')
-rw-r--r--completions/aptitude23
1 files changed, 10 insertions, 13 deletions
diff --git a/completions/aptitude b/completions/aptitude
index 1afd738d..3bcfa5cf 100644
--- a/completions/aptitude
+++ b/completions/aptitude
@@ -18,13 +18,11 @@ _aptitude()
local cur prev words cword
_init_completion || return
- local dashoptions
- dashoptions='-S -u -i -h --help --version -s --simulate -d \
- --download-only -P --prompt -y --assume-yes -F \
- --display-format -O --sort -w --width -f -r -g \
- --with-recommends -R -G --without-recommends -t \
- --target-release -V --show-versions -D --show-deps\
- -Z -v --verbose --purge-unused --schedule-only'
+ local dashoptions='-S -u -i -h --help --version -s --simulate -d
+ --download-only -P --prompt -y --assume-yes -F --display-format -O
+ --sort -w --width -f -r -g --with-recommends -R -G --without-recommends
+ -t --target-release -V --show-versions -D --show-deps -Z -v --verbose
+ --purge-unused --schedule-only'
local special i
for (( i=0; i < ${#words[@]}-1; i++ )); do
@@ -76,12 +74,11 @@ _aptitude()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$dashoptions" -- "$cur" ) )
else
- COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new \
- clean autoclean install reinstall remove \
- 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 versions' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new
+ clean autoclean install reinstall remove 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 versions' -- "$cur" ) )
fi
return 0