*: Line continuation, whitespace, and compgen -W ... -- "$cur" quoting cleanups.

This commit is contained in:
Ville Skyttä 2013-02-17 23:49:30 +02:00
parent e424ed3e52
commit 6185297fc9
109 changed files with 823 additions and 885 deletions

View File

@ -27,7 +27,7 @@ _mock()
return 0 return 0
;; ;;
-r|--root) -r|--root)
COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" -- $cur ) ) COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" -- "$cur" ) )
COMPREPLY=( ${COMPREPLY[@]/%.cfg/} ) COMPREPLY=( ${COMPREPLY[@]/%.cfg/} )
return 0 return 0
;; ;;

View File

@ -18,9 +18,9 @@ _svn()
if [[ $cword -eq 1 ]] ; then if [[ $cword -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--version' -- $cur ) ) COMPREPLY=( $( compgen -W '--version' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W "$commands" -- $cur ) ) COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
fi fi
else else
@ -196,10 +196,10 @@ _svn()
esac esac
options+=" --help --config-dir" options+=" --help --config-dir"
COMPREPLY=( $( compgen -W "$options" -- $cur ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
else else
if [[ "$command" == @(help|h|\?) ]]; then if [[ "$command" == @(help|h|\?) ]]; then
COMPREPLY=( $( compgen -W "$commands" -- $cur ) ) COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -221,9 +221,9 @@ _svnadmin()
if [[ $cword -eq 1 ]] ; then if [[ $cword -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--version' -- $cur ) ) COMPREPLY=( $( compgen -W '--version' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W "$commands" -- $cur ) ) COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
fi fi
else else
case $prev in case $prev in
@ -232,7 +232,7 @@ _svnadmin()
return 0 return 0
;; ;;
--fs-type) --fs-type)
COMPREPLY=( $( compgen -W 'fsfs bdb' -- $cur ) ) COMPREPLY=( $( compgen -W 'fsfs bdb' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -269,10 +269,10 @@ _svnadmin()
esac esac
options+=" --help" options+=" --help"
COMPREPLY=( $( compgen -W "$options" -- $cur ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
else else
if [[ "$command" == @(help|h|\?) ]]; then if [[ "$command" == @(help|h|\?) ]]; then
COMPREPLY=( $( compgen -W "$commands" -- $cur ) ) COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -294,9 +294,9 @@ _svnlook()
if [[ $cword -eq 1 ]] ; then if [[ $cword -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--version' -- $cur ) ) COMPREPLY=( $( compgen -W '--version' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W "$commands" -- $cur ) ) COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
fi fi
else else
local command=${words[1]} local command=${words[1]}
@ -327,10 +327,10 @@ _svnlook()
esac esac
options+=" --help" options+=" --help"
COMPREPLY=( $( compgen -W "$options" -- $cur ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
else else
if [[ "$command" == @(help|h|\?) ]]; then if [[ "$command" == @(help|h|\?) ]]; then
COMPREPLY=( $( compgen -W "$commands" -- $cur ) ) COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
else else
_filedir _filedir
fi fi

View File

@ -75,22 +75,22 @@ _yum()
case $prev in case $prev in
list) list)
COMPREPLY=( $( compgen -W 'all available updates \ COMPREPLY=( $( compgen -W 'all available updates installed extras
installed extras obsoletes recent' -- $cur ) ) obsoletes recent' -- "$cur" ) )
;; ;;
clean) clean)
COMPREPLY=( $( compgen -W 'packages headers metadata \ COMPREPLY=( $( compgen -W 'packages headers metadata cache dbcache
cache dbcache all' -- $cur ) ) all' -- "$cur" ) )
;; ;;
repolist) repolist)
COMPREPLY=( $( compgen -W 'all enabled disabled' -- $cur ) ) COMPREPLY=( $( compgen -W 'all enabled disabled' -- "$cur" ) )
;; ;;
localinstall|localupdate) localinstall|localupdate)
# TODO: should not match *src.rpm # TODO: should not match *src.rpm
_filedir rpm _filedir rpm
;; ;;
-d|-e) -d|-e)
COMPREPLY=( $( compgen -W '{0..10}' -- $cur ) ) COMPREPLY=( $( compgen -W '{0..10}' -- "$cur" ) )
;; ;;
-c) -c)
_filedir _filedir
@ -99,20 +99,21 @@ _yum()
_filedir -d _filedir -d
;; ;;
--enablerepo) --enablerepo)
COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' -- $cur ) ) COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' \
-- "$cur" ) )
;; ;;
--disablerepo) --disablerepo)
COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- $cur ) ) COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- "$cur" ) )
;; ;;
--disableexcludes) --disableexcludes)
COMPREPLY=( $( compgen -W '$( _yum_repolist all ) all main' \ COMPREPLY=( $( compgen -W '$( _yum_repolist all ) all main' \
-- $cur ) ) -- "$cur" ) )
;; ;;
--enableplugin|--disableplugin) --enableplugin|--disableplugin)
COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- $cur )) COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- "$cur" ) )
;; ;;
--color) --color)
COMPREPLY=( $( compgen -W 'always auto never' -- $cur )) COMPREPLY=( $( compgen -W 'always auto never' -- "$cur" ) )
;; ;;
-R|-x|--exclude) -R|-x|--exclude)
# argument required but no completions available # argument required but no completions available
@ -123,11 +124,11 @@ _yum()
return 0 return 0
;; ;;
*) *)
COMPREPLY=( $( compgen -W 'install update check-update upgrade \ COMPREPLY=( $( compgen -W 'install update check-update upgrade
remove erase list info provides whatprovides clean makecache \ remove erase list info provides whatprovides clean makecache
groupinstall groupupdate grouplist groupremove groupinfo \ groupinstall groupupdate grouplist groupremove groupinfo
search shell resolvedep localinstall localupdate deplist \ search shell resolvedep localinstall localupdate deplist
repolist help' -- $cur ) ) repolist help' -- "$cur" ) )
;; ;;
esac esac

View File

@ -11,7 +11,7 @@ _add_members()
return 0 return 0
;; ;;
-w|-a|--welcome-msg|--admin-notify) -w|-a|--welcome-msg|--admin-notify)
COMPREPLY=( $( compgen -W 'y n' -- "$cur") ) COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -19,9 +19,8 @@ _add_members()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--regular-members-file \ COMPREPLY=( $( compgen -W '--regular-members-file --digest-members-file
--digest-members-file --welcome-msg \ --welcome-msg --admin-notify --help' -- "$cur" ) )
--admin-notify --help' -- "$cur" ) )
else else
_xfunc list_lists _mailman_lists _xfunc list_lists _mailman_lists
fi fi

View File

@ -40,13 +40,13 @@ _apt_build()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --show-upgraded -u --build-dir \ COMPREPLY=( $( compgen -W '--help --show-upgraded -u --build-dir
--repository-dir --build-only --build-command --reinstall \ --repository-dir --build-only --build-command --reinstall --rebuild
--rebuild --remove-builddep --no-wrapper --purge --patch \ --remove-builddep --no-wrapper --purge --patch --patch-strip -p
--patch-strip -p --yes -y --version -v --no-source' -- "$cur" ) ) --yes -y --version -v --no-source' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'update upgrade install remove source \ COMPREPLY=( $( compgen -W 'update upgrade install remove source
dist-upgrade world clean info clean-build update-repository' \ dist-upgrade world clean info clean-build update-repository' \
-- "$cur" ) ) -- "$cur" ) )
fi fi

View File

@ -51,18 +51,16 @@ _apt_cache()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-h -v -p -s -q -i -f -a -g -c \ COMPREPLY=( $( compgen -W '-h -v -p -s -q -i -f -a -g -c -o --help
-o --help --version --pkg-cache --src-cache \ --version --pkg-cache --src-cache --quiet --important --full
--quiet --important --full --all-versions \ --all-versions --no-all-versions --generate --no-generate
--no-all-versions --generate --no-generate \ --names-only --all-names --recurse --config-file --option
--names-only --all-names --recurse \ --installed' -- "$cur" ) )
--config-file --option --installed' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'add gencaches show showpkg showsrc \ COMPREPLY=( $( compgen -W 'add gencaches show showpkg showsrc stats
stats dump dumpavail unmet search search \ dump dumpavail unmet search search depends rdepends pkgnames
depends rdepends pkgnames dotty xvcg \ dotty xvcg policy madison' -- "$cur" ) )
policy madison' -- "$cur" ) )
fi fi

View File

@ -53,20 +53,19 @@ _apt_get()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-d -f -h -v -m -q -s -y -u -t -b -c -o \ COMPREPLY=( $( compgen -W '-d -f -h -v -m -q -s -y -u -t -b -c -o
--download-only --fix-broken --help --version --ignore-missing \ --download-only --fix-broken --help --version --ignore-missing
--fix-missing --no-download --quiet --simulate --just-print \ --fix-missing --no-download --quiet --simulate --just-print
--dry-run --recon --no-act --yes --assume-yes --show-upgraded \ --dry-run --recon --no-act --yes --assume-yes --show-upgraded
--only-source --compile --build --ignore-hold --target-release \ --only-source --compile --build --ignore-hold --target-release
--no-upgrade --force-yes --print-uris --purge --reinstall \ --no-upgrade --force-yes --print-uris --purge --reinstall
--list-cleanup --default-release --trivial-only --no-remove \ --list-cleanup --default-release --trivial-only --no-remove
--diff-only --no-install-recommends --tar-only --config-file \ --diff-only --no-install-recommends --tar-only --config-file
--option --auto-remove' -- "$cur" ) ) --option --auto-remove' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'update upgrade dselect-upgrade \ COMPREPLY=( $( compgen -W 'update upgrade dselect-upgrade
dist-upgrade install remove purge source build-dep \ dist-upgrade install remove purge source build-dep download
download changelog \ changelog check clean autoclean autoremove' -- "$cur" ) )
check clean autoclean autoremove' -- "$cur" ) )
fi fi
return 0 return 0

View File

@ -18,13 +18,11 @@ _aptitude()
local cur prev words cword local cur prev words cword
_init_completion || return _init_completion || return
local dashoptions local dashoptions='-S -u -i -h --help --version -s --simulate -d
dashoptions='-S -u -i -h --help --version -s --simulate -d \ --download-only -P --prompt -y --assume-yes -F --display-format -O
--download-only -P --prompt -y --assume-yes -F \ --sort -w --width -f -r -g --with-recommends -R -G --without-recommends
--display-format -O --sort -w --width -f -r -g \ -t --target-release -V --show-versions -D --show-deps -Z -v --verbose
--with-recommends -R -G --without-recommends -t \ --purge-unused --schedule-only'
--target-release -V --show-versions -D --show-deps\
-Z -v --verbose --purge-unused --schedule-only'
local special i local special i
for (( i=0; i < ${#words[@]}-1; i++ )); do for (( i=0; i < ${#words[@]}-1; i++ )); do
@ -76,12 +74,11 @@ _aptitude()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$dashoptions" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$dashoptions" -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new \ COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new
clean autoclean install reinstall remove \ clean autoclean install reinstall remove hold unhold purge markauto
hold unhold purge markauto unmarkauto why why-not \ unmarkauto why why-not dist-upgrade full-upgrade download search
dist-upgrade full-upgrade download search show \ show forbid-version changelog keep-all build-dep add-user-tag
forbid-version changelog keep-all build-dep \ remove-user-tag versions' -- "$cur" ) )
add-user-tag remove-user-tag versions' -- "$cur" ) )
fi fi
return 0 return 0

View File

@ -10,7 +10,7 @@ _arch()
case $prev in case $prev in
-w|-g|-d|--welcome-msg|--goodbye-msg|--digest) -w|-g|-d|--welcome-msg|--goodbye-msg|--digest)
COMPREPLY=( $( compgen -W 'y n' -- "$cur") ) COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
return 0 return 0
;; ;;
-d|--file) -d|--file)
@ -22,8 +22,8 @@ _arch()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--wipe --start --end --quiet \ COMPREPLY=( $( compgen -W '--wipe --start --end --quiet --help' \
--help' -- "$cur" ) ) -- "$cur" ) )
else else
local args=$cword local args=$cword
for (( i=1; i < cword; i++ )); do for (( i=1; i < cword; i++ )); do

View File

@ -37,7 +37,8 @@ _aspell()
return 0 return 0
;; ;;
--sug-mode) --sug-mode)
COMPREPLY=( $( compgen -W 'ultra fast normal bad-speller' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'ultra fast normal bad-speller' \
-- "$cur" ) )
return 0 return 0
;; ;;
--keymapping) --keymapping)
@ -58,31 +59,28 @@ _aspell()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--conf= --conf-dir= --data-dir= --dict-dir= \ COMPREPLY=( $( compgen -W '--conf= --conf-dir= --data-dir= --dict-dir=
--encoding= --add-filter= --rem-filter= --mode= \ --encoding= --add-filter= --rem-filter= --mode= --add-extra-dicts=
--add-extra-dicts= --rem-extra-dicts= \ --rem-extra-dicts= --home-dir= --ignore= --ignore-accents
--home-dir= --ignore= --ignore-accents \ --dont-ignore-accents --ignore-case --dont-ignore-case
--dont-ignore-accents --ignore-case --dont-ignore-case \ --ignore-repl --dont-ignore-repl --jargon --keyboard= --lang=
--ignore-repl --dont-ignore-repl --jargon --keyboard= \ --language-tag --local-data-dir= --master= --module
--lang= --language-tag --local-data-dir= --master= \ --add-module-search-order --rem-module-search-order --per-conf=
--module --add-module-search-order \ --personal= --prefix= --repl= --run-together --dont-run-together
--rem-module-search-order --per-conf= --personal= \ --run-together-limit= --run-together-min= --save-repl
--prefix= --repl= --run-together --dont-run-together \ --dont-save-repl --set-prefix --dont-set-prefix --size= --spelling
--run-together-limit= --run-together-min= --save-repl \ --strip-accents --dont-strip-accents --sug-mode=
--dont-save-repl --set-prefix --dont-set-prefix --size= \ --add-word-list-path --rem-word-list-path --backup --dont-backup
--spelling --strip-accents --dont-strip-accents \ --reverse --dont-reverse --time --dont-time --keymapping=
--sug-mode= --add-word-list-path --rem-word-list-path \ --add-email-quote= --rem-email-quote= --email-margin=
--backup --dont-backup --reverse --dont-reverse \ --add-tex-command= --rem-tex-command= --tex-check-comments
--time --dont-time --keymapping= --add-email-quote= \ --dont-tex-check-comments --add-tex-extension --rem-tex-extension
--rem-email-quote= --email-margin= --add-tex-command= \ --add-sgml-check= --rem-sgml-check= --add-sgml-extension
--rem-tex-command= --tex-check-comments \ --rem-sgml-extension' -- "$cur" ) )
--dont-tex-check-comments --add-tex-extension \
--rem-tex-extension --add-sgml-check= --rem-sgml-check= \
--add-sgml-extension --rem-sgml-extension' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace
else else
COMPREPLY=( $( compgen -W 'usage help check pipe list \ COMPREPLY=( $( compgen -W 'usage help check pipe list config soundslike
config soundslike filter version dump create merge' -- "$cur" ) ) filter version dump create merge' -- "$cur" ) )
fi fi
} && } &&
complete -F _aspell aspell complete -F _aspell aspell

View File

@ -5,7 +5,7 @@ _autorpm()
local cur prev words cword local cur prev words cword
_init_completion || return _init_completion || return
COMPREPLY=( $( compgen -W '--notty --debug --help --version auto add \ COMPREPLY=( $( compgen -W '--notty --debug --help --version auto add
fullinfo info help install list remove set' -- "$cur" ) ) fullinfo info help install list remove set' -- "$cur" ) )
} && } &&

View File

@ -9,10 +9,9 @@ _brctl()
case $cword in case $cword in
1) 1)
COMPREPLY=( $( compgen -W "addbr delbr addif delif \ COMPREPLY=( $( compgen -W "addbr delbr addif delif setageing
setageing setbridgeprio setfd sethello \ setbridgeprio setfd sethello setmaxage setpathcost setportprio
setmaxage setpathcost setportprio show \ show showmacs showstp stp" -- "$cur" ) )
showmacs showstp stp" -- "$cur" ) )
;; ;;
2) 2)
case $command in case $command in

View File

@ -13,13 +13,13 @@ _btdownload()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval \ COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval
--download_slice_size --request_backlog --max_message_length \ --download_slice_size --request_backlog --max_message_length
--ip --minport --maxport --responsefile --url --saveas --timeout \ --ip --minport --maxport --responsefile --url --saveas --timeout
--timeout_check_interval --max_slice_length --max_rate_period \ --timeout_check_interval --max_slice_length --max_rate_period
--bind --upload_rate_fudge --display_interval --rerequest_interval \ --bind --upload_rate_fudge --display_interval --rerequest_interval
--min_peers --http_timeout --max_initiate --max_allow_in \ --min_peers --http_timeout --max_initiate --max_allow_in
--check_hashes --max_upload_rate --snub_time --spew \ --check_hashes --max_upload_rate --snub_time --spew
--rarest_first_cutoff --min_uploads --report_hash_failures' \ --rarest_first_cutoff --min_uploads --report_hash_failures' \
-- "$cur" ) ) -- "$cur" ) )
else else

View File

@ -6,8 +6,8 @@ _cardctl()
_init_completion || return _init_completion || return
if [[ $cword -eq 1 ]]; then if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W 'status config ident suspend \ COMPREPLY=( $( compgen -W 'status config ident suspend resume reset
resume reset eject insert scheme' -- "$cur" ) ) eject insert scheme' -- "$cur" ) )
fi fi
} && } &&
complete -F _cardctl cardctl pccardctl complete -F _cardctl cardctl pccardctl

View File

@ -22,7 +22,7 @@ _cfrun()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-f -h -d -S -T -v' -- $cur ) ) COMPREPLY=( $( compgen -W '-f -h -d -S -T -v' -- "$cur" ) )
else else
hostfile=${CFINPUTS:-/var/lib/cfengine/inputs}/cfrun.hosts hostfile=${CFINPUTS:-/var/lib/cfengine/inputs}/cfrun.hosts
for (( i=1; i < cword; i++ )); do for (( i=1; i < cword; i++ )); do

View File

@ -15,8 +15,8 @@ _change_pw()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--all --domain --listname \ COMPREPLY=( $( compgen -W '--all --domain --listname --password --quiet
--password --quiet --help' -- "$cur" ) ) --help' -- "$cur" ) )
fi fi
} && } &&

View File

@ -20,9 +20,9 @@ _chgrp()
for w in "${words[@]}" ; do for w in "${words[@]}" ; do
[[ "$w" == -@(R|-recursive) ]] && opts="-H -L -P" && break [[ "$w" == -@(R|-recursive) ]] && opts="-H -L -P" && break
done done
COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference \ COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference
--no-dereference --silent --quiet --reference --recursive \ --no-dereference --silent --quiet --reference --recursive --verbose
--verbose --help --version $opts' -- "$cur" ) ) --help --version $opts' -- "$cur" ) )
return 0 return 0
fi fi

View File

@ -25,8 +25,8 @@ _chown()
for w in "${words[@]}" ; do for w in "${words[@]}" ; do
[[ "$w" == -@(R|-recursive) ]] && opts="-H -L -P" && break [[ "$w" == -@(R|-recursive) ]] && opts="-H -L -P" && break
done done
COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference \ COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference
--no-dereference --from --silent --quiet --reference --recursive \ --no-dereference --from --silent --quiet --reference --recursive
--verbose --help --version $opts' -- "$cur" ) ) --verbose --help --version $opts' -- "$cur" ) )
else else
local args local args

View File

@ -6,8 +6,8 @@ _cleanarch()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--status --dry-run --quiet \ COMPREPLY=( $( compgen -W '--status --dry-run --quiet --help' \
--help' -- "$cur" ) ) -- "$cur" ) )
fi fi
} && } &&

View File

@ -9,9 +9,9 @@ _clisp()
# completing an option (may or may not be separated by a space) # completing an option (may or may not be separated by a space)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \ COMPREPLY=( $( compgen -W '-h --help --version --license -B -K -M -m -L
-M -m -L -N -E -q --quiet --silent -w -I -ansi \ -N -E -q --quiet --silent -w -I -ansi -traditional -p -C -norc -i
-traditional -p -C -norc -i -c -l -o -x ' -- "$cur" ) ) -c -l -o -x ' -- "$cur" ) )
else else
_filedir _filedir
fi fi

View File

@ -15,8 +15,8 @@ _clone_member()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--listname --remove --admin \ COMPREPLY=( $( compgen -W '--listname --remove --admin --quiet
--quiet --nomodify --help' -- "$cur" ) ) --nomodify --help' -- "$cur" ) )
fi fi
} && } &&

View File

@ -7,16 +7,16 @@ _complete()
case $prev in case $prev in
-o) -o)
COMPREPLY=( $( compgen -W 'bashdefault default dirnames filenames \ COMPREPLY=( $( compgen -W 'bashdefault default dirnames filenames
nospace plusdirs' -- "$cur" ) ) nospace plusdirs' -- "$cur" ) )
return 0 return 0
;; ;;
-A) -A)
COMPREPLY=( $( compgen -W 'alias arrayvar binding builtin command \ COMPREPLY=( $( compgen -W 'alias arrayvar binding builtin command
directory disabled enabled export file function group \ directory disabled enabled export file function group helptopic
helptopic hostname job keyword running service setopt shopt \ hostname job keyword running service setopt shopt signal
signal stopped user variable' -- "$cur" ) ) stopped user variable' -- "$cur" ) )
return 0 return 0
;; ;;

View File

@ -15,8 +15,8 @@ _config_list()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--inputfile --outputfile \ COMPREPLY=( $( compgen -W '--inputfile --outputfile --checkonly
--checkonly --verbose --help' -- "$cur" ) ) --verbose --help' -- "$cur" ) )
else else
_xfunc list_lists _mailman_lists _xfunc list_lists _mailman_lists
fi fi

View File

@ -4,8 +4,8 @@ _ImageMagick()
{ {
case $prev in case $prev in
-channel) -channel)
COMPREPLY=( $( compgen -W 'Red Green Blue Opacity \ COMPREPLY=( $( compgen -W 'Red Green Blue Opacity Matte Cyan
Matte Cyan Magenta Yellow Black' -- "$cur" ) ) Magenta Yellow Black' -- "$cur" ) )
return 0 return 0
;; ;;
-colormap) -colormap)
@ -13,19 +13,19 @@ _ImageMagick()
return 0 return 0
;; ;;
-colorspace) -colorspace)
COMPREPLY=( $( compgen -W 'GRAY OHTA RGB Transparent \ COMPREPLY=( $( compgen -W 'GRAY OHTA RGB Transparent XYZ YCbCr YIQ
XYZ YCbCr YIQ YPbPr YUV CMYK' -- "$cur" ) ) YPbPr YUV CMYK' -- "$cur" ) )
return 0 return 0
;; ;;
-compose) -compose)
COMPREPLY=( $( compgen -W 'Over In Out Atop Xor Plus \ COMPREPLY=( $( compgen -W 'Over In Out Atop Xor Plus Minus Add
Minus Add Subtract Difference Multiply Bumpmap\ Subtract Difference Multiply Bumpmap Copy CopyRed CopyGreen
Copy CopyRed CopyGreen CopyBlue CopyOpacity' -- "$cur" ) ) CopyBlue CopyOpacity' -- "$cur" ) )
return 0 return 0
;; ;;
-compress) -compress)
COMPREPLY=( $( compgen -W 'None BZip Fax Group4 JPEG \ COMPREPLY=( $( compgen -W 'None BZip Fax Group4 JPEG Lossless LZW
Lossless LZW RLE Zip' -- "$cur" ) ) RLE Zip' -- "$cur" ) )
return 0 return 0
;; ;;
-dispose) -dispose)
@ -34,9 +34,9 @@ _ImageMagick()
return 0 return 0
;; ;;
-encoding) -encoding)
COMPREPLY=( $( compgen -W 'AdobeCustom AdobeExpert \ COMPREPLY=( $( compgen -W 'AdobeCustom AdobeExpert AdobeStandard
AdobeStandard AppleRoman BIG5 GB2312 Latin2 \ AppleRoman BIG5 GB2312 Latin2 None SJIScode Symbol Unicode
None SJIScode Symbol Unicode Wansung' -- "$cur")) Wansung' -- "$cur" ) )
return 0 return 0
;; ;;
-endian) -endian)
@ -44,9 +44,9 @@ _ImageMagick()
return 0 return 0
;; ;;
-filter) -filter)
COMPREPLY=( $( compgen -W 'Point Box Triangle Hermite \ COMPREPLY=( $( compgen -W 'Point Box Triangle Hermite Hanning
Hanning Hamming Blackman Gaussian Quadratic \ Hamming Blackman Gaussian Quadratic Cubic Catrom Mitchell
Cubic Catrom Mitchell Lanczos Bessel Sinc' -- "$cur" ) ) Lanczos Bessel Sinc' -- "$cur" ) )
return 0 return 0
;; ;;
-format) -format)
@ -56,13 +56,13 @@ _ImageMagick()
return 0 return 0
;; ;;
-gravity) -gravity)
COMPREPLY=( $( compgen -W 'Northwest North NorthEast \ COMPREPLY=( $( compgen -W 'Northwest North NorthEast West Center
West Center East SouthWest South SouthEast' -- "$cur" ) ) East SouthWest South SouthEast' -- "$cur" ) )
return 0 return 0
;; ;;
-intent) -intent)
COMPREPLY=( $( compgen -W 'Absolute Perceptual \ COMPREPLY=( $( compgen -W 'Absolute Perceptual Relative
Relative Saturation' -- "$cur" ) ) Saturation' -- "$cur" ) )
return 0 return 0
;; ;;
-interlace) -interlace)
@ -74,7 +74,7 @@ _ImageMagick()
return 0 return 0
;; ;;
-list) -list)
COMPREPLY=( $( compgen -W 'Delegate Format Magic Module Resource \ COMPREPLY=( $( compgen -W 'Delegate Format Magic Module Resource
Type' -- "$cur" ) ) Type' -- "$cur" ) )
return 0 return 0
;; ;;
@ -85,18 +85,16 @@ _ImageMagick()
return 0 return 0
;; ;;
-noise) -noise)
COMPREPLY=( $( compgen -W 'Uniform Gaussian Multiplicative \ COMPREPLY=( $( compgen -W 'Uniform Gaussian Multiplicative
Impulse Laplacian Poisson' -- "$cur" ) ) Impulse Laplacian Poisson' -- "$cur" ) )
return 0 return 0
;; ;;
-preview) -preview)
COMPREPLY=( $( compgen -W 'Rotate Shear Roll Hue \ COMPREPLY=( $( compgen -W 'Rotate Shear Roll Hue Saturation
Saturation Brightness Gamma Spiff \ Brightness Gamma Spiff Dull Grayscale Quantize Despeckle
Dull Grayscale Quantize Despeckle \ ReduceNoise AddNoise Sharpen Blur Treshold EdgeDetect Spread
ReduceNoise AddNoise Sharpen Blur \ Shade Raise Segment Solarize Swirl Implode Wave OilPaint
Treshold EdgeDetect Spread Shade \ CharcoalDrawing JPEG' -- "$cur" ) )
Raise Segment Solarize Swirl Implode \
Wave OilPaint CharcoalDrawing JPEG' -- "$cur" ) )
return 0 return 0
;; ;;
-mask|-profile|-texture|-tile|-write) -mask|-profile|-texture|-tile|-write)
@ -104,13 +102,13 @@ _ImageMagick()
return 0 return 0
;; ;;
-type) -type)
COMPREPLY=( $( compgen -W 'Bilevel Grayscale Palette PaletteMatte \ COMPREPLY=( $( compgen -W 'Bilevel Grayscale Palette PaletteMatte
TrueColor TrueColorMatte ColorSeparation ColorSeparationlMatte \ TrueColor TrueColorMatte ColorSeparation ColorSeparationlMatte
Optimize' -- "$cur" ) ) Optimize' -- "$cur" ) )
return 0 return 0
;; ;;
-units) -units)
COMPREPLY=( $( compgen -W 'Undefined PixelsPerInch \ COMPREPLY=( $( compgen -W 'Undefined PixelsPerInch
PixelsPerCentimeter' -- "$cur" ) ) PixelsPerCentimeter' -- "$cur" ) )
return 0 return 0
;; ;;
@ -119,8 +117,9 @@ _ImageMagick()
return 0 return 0
;; ;;
-visual) -visual)
COMPREPLY=( $( compgen -W 'StaticGray GrayScale StaticColor \ COMPREPLY=( $( compgen -W 'StaticGray GrayScale StaticColor
PseudoColor TrueColor DirectColor defaut visualid' -- "$cur" )) PseudoColor TrueColor DirectColor defaut visualid' \
-- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -138,10 +137,9 @@ _convert()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
elif [[ "$cur" == +* ]]; then elif [[ "$cur" == +* ]]; then
COMPREPLY=( $( compgen -W '+adjoin +append +compress \ COMPREPLY=( $( compgen -W '+adjoin +append +compress +contrast +debug
+contrast +debug +dither +endian +gamma +label +map \ +dither +endian +gamma +label +map +mask +matte +negate +noise
+mask +matte +negate +noise +page +raise +render \ +page +raise +render +write' -- "$cur" ) )
+write' -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -158,9 +156,8 @@ _mogrify()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
elif [[ "$cur" == +* ]]; then elif [[ "$cur" == +* ]]; then
COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither \ COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither +endian
+endian +gamma +label +map +mask +matte +negate +page \ +gamma +label +map +mask +matte +negate +page +raise' -- "$cur" ) )
+raise' -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -177,9 +174,8 @@ _display()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
elif [[ "$cur" == +* ]]; then elif [[ "$cur" == +* ]]; then
COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither \ COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither +endian
+endian +gamma +label +map +matte +negate +page \ +gamma +label +map +matte +negate +page +raise +write' -- "$cur" ) )
+raise +write' -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -231,8 +227,8 @@ _montage()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
elif [[ "$cur" == +* ]]; then elif [[ "$cur" == +* ]]; then
COMPREPLY=( $( compgen -W '+adjoin +compress +debug +dither \ COMPREPLY=( $( compgen -W '+adjoin +compress +debug +dither +endian
+endian +gamma +label +matte +page' -- "$cur" ) ) +gamma +label +matte +page' -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -249,7 +245,7 @@ _composite()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
elif [[ "$cur" == +* ]]; then elif [[ "$cur" == +* ]]; then
COMPREPLY=( $( compgen -W '+compress +debug +dither +endian +label \ COMPREPLY=( $( compgen -W '+compress +debug +dither +endian +label
+matte +negate +page +write' -- "$cur" ) ) +matte +negate +page +write' -- "$cur" ) )
else else
_filedir _filedir

View File

@ -33,9 +33,9 @@ _cryptsetup()
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace
else else
COMPREPLY=( $( compgen -W 'create remove status resize luksFormat \ COMPREPLY=( $( compgen -W 'create remove status resize luksFormat
luksOpen luksClose luksSuspend luksResume luksAddKey \ luksOpen luksClose luksSuspend luksResume luksAddKey
luksRemoveKey luksKillSlot luksDelKey luksUUID isLuks \ luksRemoveKey luksKillSlot luksDelKey luksUUID isLuks
luksDump luksHeaderBackup luksHeaderRestore' -- "$cur" ) ) luksDump luksHeaderBackup luksHeaderRestore' -- "$cur" ) )
fi fi
else else

View File

@ -326,7 +326,7 @@ _cvs()
fi fi
pwd=$( pwd ) pwd=$( pwd )
pwd=${pwd##*/} pwd=${pwd##*/}
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $pwd' -- $cur ) ) COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $pwd' -- "$cur" ) )
else else
_cvs_command_options "$1" $mode _cvs_command_options "$1" $mode
fi fi
@ -376,9 +376,9 @@ _cvs()
;; ;;
esac esac
COMPREPLY=( $( compgen -W '$( _cvs_commands ) \ COMPREPLY=( $( compgen -W '$( _cvs_commands )
$( _parse_help "$1" --help-options ) \ $( _parse_help "$1" --help-options ) --help --help-commands
--help --help-commands --help-options --version' -- "$cur" ) ) --help-options --version' -- "$cur" ) )
;; ;;
esac esac

View File

@ -17,8 +17,8 @@ _dhclient()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-p -d -q -1 -r -lf -pf \ COMPREPLY=( $( compgen -W '-p -d -q -1 -r -lf -pf -cf -sf -s -g -n -nw
-cf -sf -s -g -n -nw -w' -- "$cur" ) ) -w' -- "$cur" ) )
else else
_available_interfaces _available_interfaces
fi fi

View File

@ -111,7 +111,7 @@ _dpkg_reconfigure()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $(compgen -W '--frontend --priority --all --unseen-only \ COMPREPLY=( $(compgen -W '--frontend --priority --all --unseen-only
--help --showold --force --terse' -- "$cur" ) ) --help --showold --force --terse' -- "$cur" ) )
else else
COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) ) COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) )

View File

@ -17,11 +17,11 @@ _dselect()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--admindir --help --version --licence \ COMPREPLY=( $( compgen -W '--admindir --help --version --licence
--license --expert --debug' -- "$cur" ) ) --expert --debug' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'access update select install config \ COMPREPLY=( $( compgen -W 'access update select install config remove
remove quit' -- "$cur" ) ) quit' -- "$cur" ) )
fi fi
return 0 return 0

View File

@ -6,8 +6,8 @@ _dumpdb()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--marshal --pickle --noprint \ COMPREPLY=( $( compgen -W '--marshal --pickle --noprint --help' \
--help' -- "$cur" ) ) -- "$cur" ) )
else else
_filedir _filedir
fi fi

View File

@ -56,8 +56,8 @@ _find()
return 0 return 0
;; ;;
-regextype) -regextype)
COMPREPLY=( $( compgen -W 'emacs posix-awk posix-basic \ COMPREPLY=( $( compgen -W 'emacs posix-awk posix-basic posix-egrep
posix-egrep posix-extended' -- "$cur" ) ) posix-extended' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -77,17 +77,16 @@ _find()
fi fi
# complete using basic options # complete using basic options
COMPREPLY=( $( compgen -W '-daystart -depth -follow -help \ COMPREPLY=( $( compgen -W '-daystart -depth -follow -help
-ignore_readdir_race -maxdepth -mindepth -mindepth -mount \ -ignore_readdir_race -maxdepth -mindepth -mindepth -mount
-noignore_readdir_race -noleaf -regextype -version -warn -nowarn \ -noignore_readdir_race -noleaf -regextype -version -warn -nowarn -xdev
-xdev \ -amin -anewer -atime -cmin -cnewer -ctime -empty -executable -false
-amin -anewer -atime -cmin -cnewer -ctime -empty -executable -false \ -fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename
-fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \ -links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm
-links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \ -readable -regex -samefile -size -true -type -uid -used -user
-readable -regex -samefile -size -true -type -uid -used -user \ -wholename -writable -xtype -context -delete -exec -execdir -fls
-wholename -writable -xtype -context \ -fprint -fprint0 -fprintf -ls -ok -okdir -print -print0 -printf -prune
-delete -exec -execdir -fls -fprint -fprint0 -fprintf -ls -ok -okdir \ -quit' -- "$cur" ) )
-print -print0 -printf -prune -quit' -- "$cur" ) )
if [[ ${#COMPREPLY[@]} -ne 0 ]]; then if [[ ${#COMPREPLY[@]} -ne 0 ]]; then
# this removes any options from the list of completions that have # this removes any options from the list of completions that have

View File

@ -15,8 +15,8 @@ _find_member()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--listname --exclude --owners \ COMPREPLY=( $( compgen -W '--listname --exclude --owners --help' \
--help' -- "$cur" ) ) -- "$cur" ) )
fi fi
} && } &&

View File

@ -9,8 +9,8 @@ _gcl()
# completing an option (may or may not be separated by a space) # completing an option (may or may not be separated by a space)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-eval -load -f -batch -dir -libdir \ COMPREPLY=( $( compgen -W '-eval -load -f -batch -dir -libdir -compile
-compile -o-file -c-file -h-file -data-file -system-p '-- "$cur" ) ) -o-file -c-file -h-file -data-file -system-p' -- "$cur" ) )
else else
_filedir _filedir
fi fi

View File

@ -68,8 +68,8 @@ _getent()
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace
elif [[ -z $db ]]; then elif [[ -z $db ]]; then
COMPREPLY=( $( compgen -W 'passwd group hosts services protocols \ COMPREPLY=( $( compgen -W 'passwd group hosts services protocols
networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc \ networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc
shadow gshadow' -- "$cur" ) ) shadow gshadow' -- "$cur" ) )
fi fi
} && } &&

View File

@ -8,17 +8,14 @@ _gnatmake()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
# relevant (and less relevant ;-) )options completion # relevant (and less relevant ;-) )options completion
COMPREPLY=( $( compgen -W '-a -c -f -i -j -k -m -M -n -o \ COMPREPLY=( $( compgen -W '-a -c -f -i -j -k -m -M -n -o -q -s -v -z
-q -s -v -z -aL -A -aO -aI -I -I- -L -nostdinc \ -aL -A -aO -aI -I -I- -L -nostdinc -nostdlib -cargs -bargs -largs
-nostdlib -cargs -bargs -largs -fstack-check \ -fstack-check -fno-inline -g -O1 -O0 -O2 -O3 -gnata -gnatA -gnatb
-fno-inline -g -O1 -O0 -O2 -O3 -gnata -gnatA \ -gnatc -gnatd -gnatD -gnate -gnatE -gnatf -gnatF -gnatg -gnatG
-gnatb -gnatc -gnatd -gnatD -gnate -gnatE \ -gnath -gnati -gnatk -gnatl -gnatL -gnatm -gnatn -gnato -gnatO
-gnatf -gnatF -gnatg -gnatG -gnath -gnati \ -gnatp -gnatP -gnatq -gnatR -gnats -gnatt -gnatT -gnatu -gnatU
-gnatk -gnatl -gnatL -gnatm -gnatn -gnato \ -gnatv -gnatws -gnatwe -gnatwl -gnatwu -gnatW -gnatx -gnatX -gnaty
-gnatO -gnatp -gnatP -gnatq -gnatR -gnats \ -gnatz -gnatZ -gnat83' -- "$cur" ) )
-gnatt -gnatT -gnatu -gnatU -gnatv -gnatws \
-gnatwe -gnatwl -gnatwu -gnatW -gnatx -gnatX \
-gnaty -gnatz -gnatZ -gnat83' -- "$cur" ) )
else else
# source file completion # source file completion
_filedir '@(adb|ads)' _filedir '@(adb|ads)'

View File

@ -19,11 +19,11 @@ _gpg()
;; ;;
-r|--recipient) -r|--recipient)
COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | \ COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | \
sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" )) sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" ) )
if [[ -e ~/.gnupg/gpg.conf ]]; then if [[ -e ~/.gnupg/gpg.conf ]]; then
COMPREPLY+=( $( compgen -W "$( sed -ne \ COMPREPLY+=( $( compgen -W "$( sed -ne \
's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \ 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
~/.gnupg/gpg.conf )" -- "$cur") ) ~/.gnupg/gpg.conf )" -- "$cur" ) )
fi fi
return 0 return 0
;; ;;

View File

@ -23,11 +23,11 @@ _gpg2()
;; ;;
-r|--recipient) -r|--recipient)
COMPREPLY=( $( compgen -W "$( gpg2 --list-keys 2>/dev/null | \ COMPREPLY=( $( compgen -W "$( gpg2 --list-keys 2>/dev/null | \
sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" )) sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" ) )
if [[ -e ~/.gnupg/gpg.conf ]]; then if [[ -e ~/.gnupg/gpg.conf ]]; then
COMPREPLY+=( $( compgen -W "$( sed -ne \ COMPREPLY+=( $( compgen -W "$( sed -ne \
's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \ 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
~/.gnupg/gpg.conf)" -- "$cur")) ~/.gnupg/gpg.conf)" -- "$cur" ) )
fi fi
return 0 return 0
;; ;;

View File

@ -16,9 +16,9 @@ _bluetooth_devices()
_bluetooth_services() _bluetooth_services()
{ {
COMPREPLY=( $( compgen -W 'DID SP DUN LAN FAX OPUSH FTP HS HF HFAG \ COMPREPLY=( $( compgen -W 'DID SP DUN LAN FAX OPUSH FTP HS HF HFAG SAP NAP
SAP NAP GN PANU HCRP HID CIP A2SRC A2SNK AVRCT AVRTG UDIUE \ GN PANU HCRP HID CIP A2SRC A2SNK AVRCT AVRTG UDIUE UDITE SYNCML' \
UDITE SYNCML' -- "$cur" ) ) -- "$cur" ) )
} }
_bluetooth_packet_types() _bluetooth_packet_types()
@ -55,9 +55,9 @@ _hcitool()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'dev inq scan name info \ COMPREPLY=( $( compgen -W 'dev inq scan name info spinq epinq cmd
spinq epinq cmd con cc dc sr cpt rssi lq tpl \ con cc dc sr cpt rssi lq tpl afh lst auth enc key clkoff
afh lst auth enc key clkoff clock' -- "$cur" ) ) clock' -- "$cur" ) )
fi fi
else else
case $arg in case $arg in
@ -126,15 +126,15 @@ _sdptool()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'search browse records add \ COMPREPLY=( $( compgen -W 'search browse records add del get
del get setattr setseq' -- "$cur" ) ) setattr setseq' -- "$cur" ) )
fi fi
else else
case $arg in case $arg in
search) search)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--bdaddr \ COMPREPLY=( $( compgen -W '--bdaddr --tree --raw --xml' \
--tree --raw --xml' -- "$cur" ) ) -- "$cur" ) )
else else
_bluetooth_services _bluetooth_services
fi fi
@ -155,8 +155,8 @@ _sdptool()
;; ;;
get) get)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--bdaddr \ COMPREPLY=( $( compgen -W '--bdaddr --tree --raw --xml' \
--tree --raw --xml' -- "$cur" ) ) -- "$cur" ) )
fi fi
;; ;;
esac esac
@ -210,8 +210,8 @@ _rfcomm()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'show connect listen watch \ COMPREPLY=( $( compgen -W 'show connect listen watch bind
bind release' -- "$cur" ) ) release' -- "$cur" ) )
fi fi
else else
_count_args _count_args
@ -249,8 +249,8 @@ _ciptool()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'show search connect release \ COMPREPLY=( $( compgen -W 'show search connect release loopback' \
loopback' -- "$cur" ) ) -- "$cur" ) )
fi fi
else else
case $arg in case $arg in
@ -284,8 +284,8 @@ _dfutool()
_count_args _count_args
case $args in case $args in
1) 1)
COMPREPLY=( $( compgen -W 'verify modify \ COMPREPLY=( $( compgen -W 'verify modify upgrade archive' \
upgrade archive' -- "$cur" ) ) -- "$cur" ) )
;; ;;
2) 2)
_filedir _filedir
@ -306,13 +306,11 @@ _hciconfig()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --all' -- "$cur" ) ) COMPREPLY=( $( compgen -W '--help --all' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'up down reset rstat auth \ COMPREPLY=( $( compgen -W 'up down reset rstat auth noauth encrypt
noauth encrypt noencrypt secmgr nosecmgr \ noencrypt secmgr nosecmgr piscan noscan iscan pscan ptype name
piscan noscan iscan pscan ptype name class \ class voice iac inqmode inqdata inqtype inqparams pageparms
voice iac inqmode inqdata inqtype inqparams \ pageto afhmode aclmtu scomtu putkey delkey commands features
pageparms pageto afhmode aclmtu scomtu putkey \ version revision lm' -- "$cur" ) )
delkey commands features version revision lm' \
-- "$cur" ) )
fi fi
else else
case $arg in case $arg in
@ -325,8 +323,8 @@ _hciconfig()
lm) lm)
_count_args _count_args
if [[ $args -eq 2 ]]; then if [[ $args -eq 2 ]]; then
COMPREPLY=( $( compgen -W 'MASTER \ COMPREPLY=( $( compgen -W 'MASTER SLAVE NONE ACCEPT' \
SLAVE NONE ACCEPT' -- "$cur" ) ) -- "$cur" ) )
fi fi
;; ;;
ptype) ptype)
@ -353,17 +351,16 @@ _hciattach()
case $args in case $args in
1) 1)
COMPREPLY=( $( printf '%s\n' /dev/tty* ) ) COMPREPLY=( $( printf '%s\n' /dev/tty* ) )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} \ COMPREPLY=( $( compgen -W '${COMPREPLY[@]}
${COMPREPLY[@]#/dev/}' -- "$cur" ) ) ${COMPREPLY[@]#/dev/}' -- "$cur" ) )
;; ;;
2) 2)
COMPREPLY=( $( compgen -W 'any ericsson digi \ COMPREPLY=( $( compgen -W 'any ericsson digi xircom csr bboxes
xircom csr bboxes swave bcsp 0x0105 \ swave bcsp 0x0105 0x080a 0x0160 0x0002' -- "$cur" ) )
0x080a 0x0160 0x0002' -- "$cur" ) )
;; ;;
3) 3)
COMPREPLY=( $( compgen -W '9600 19200 38400 \ COMPREPLY=( $( compgen -W '9600 19200 38400 57600 115200 230400
57600 115200 230400 460800 921600' -- "$cur" ) ) 460800 921600' -- "$cur" ) )
;; ;;
4) 4)
COMPREPLY=( $( compgen -W 'flow noflow' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'flow noflow' -- "$cur" ) )

View File

@ -6,8 +6,8 @@ _hid2hci()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --quiet -0 --tohci -1 \ COMPREPLY=( $( compgen -W '--help --quiet -0 --tohci -1 --tohid' \
--tohid' -- "$cur" ) ) -- "$cur" ) )
fi fi
} && } &&
complete -F _hid2hci hid2hci complete -F _hid2hci hid2hci

View File

@ -21,8 +21,8 @@ _installpkg()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--warn --md5sum --root --infobox --terse \ COMPREPLY=( $( compgen -W '--warn --md5sum --root --infobox --terse
--menu --ask --priority --tagfile' -- "$cur") ) --menu --ask --priority --tagfile' -- "$cur" ) )
return 0 return 0
fi fi

View File

@ -19,22 +19,21 @@ _ipsec_freeswan()
_init_completion || return _init_completion || return
if [[ $cword -eq 1 ]]; then if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W 'auto barf eroute klipsdebug look manual \ COMPREPLY=( $( compgen -W 'auto barf eroute klipsdebug look manual
pluto ranbits rsasigkey setup showdefaults showhostkey spi spigrp \ pluto ranbits rsasigkey setup showdefaults showhostkey spi spigrp
tncfg whack' -- "$cur" ) ) tncfg whack' -- "$cur" ) )
return 0 return 0
fi fi
case ${words[1]} in case ${words[1]} in
auto) auto)
COMPREPLY=( $( compgen -W '--asynchronous --up --add --delete \ COMPREPLY=( $( compgen -W '--asynchronous --up --add --delete
--replace --down --route --unroute \ --replace --down --route --unroute --ready --status
--ready --status --rereadsecrets' \ --rereadsecrets' -- "$cur" ) )
-- "$cur" ) )
;; ;;
manual) manual)
COMPREPLY=( $( compgen -W '--up --down --route --unroute \ COMPREPLY=( $( compgen -W '--up --down --route --unroute --union' \
--union' -- "$cur" ) ) -- "$cur" ) )
;; ;;
ranbits) ranbits)
COMPREPLY=( $( compgen -W '--quick --continuous --bytes' \ COMPREPLY=( $( compgen -W '--quick --continuous --bytes' \
@ -56,14 +55,14 @@ _ipsec_strongswan()
_init_completion || return _init_completion || return
if [[ $cword -eq 1 ]]; then if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W 'down irdumm leases listaacerts listacerts \ COMPREPLY=( $( compgen -W 'down irdumm leases listaacerts listacerts
listalgs listall listcacerts listcainfos listcards listcerts \ listalgs listall listcacerts listcainfos listcards listcerts
listcrls listgroups listocsp listocspcerts listpubkeys openac pki listcrls listgroups listocsp listocspcerts listpubkeys openac pki
pluto pool purgecerts purgecrls purgeike purgeocsp ready reload \ pluto pool purgecerts purgecrls purgeike purgeocsp ready reload
rereadaacerts rereadacerts rereadall rereadcacerts rereadcrls \ rereadaacerts rereadacerts rereadall rereadcacerts rereadcrls
rereadgroups rereadocspcerts rereadsecrets restart route scdecrypt \ rereadgroups rereadocspcerts rereadsecrets restart route scdecrypt
scencrypt scepclient secrets start starter status statusall stop \ scencrypt scepclient secrets start starter status statusall stop
stroke unroute uci up update version whack --confdir --copyright \ stroke unroute uci up update version whack --confdir --copyright
--directory --help --version --versioncode' -- "$cur" ) ) --directory --help --version --versioncode' -- "$cur" ) )
return 0 return 0
fi fi
@ -77,11 +76,11 @@ _ipsec_strongswan()
COMPREPLY=( $( compgen -W '--utc' -- "$cur" ) ) COMPREPLY=( $( compgen -W '--utc' -- "$cur" ) )
;; ;;
restart|start) restart|start)
COMPREPLY=( $( compgen -W '--attach-gdb --auto-update --debug \ COMPREPLY=( $( compgen -W '--attach-gdb --auto-update --debug
--debug-all --debug-more --nofork' -- "$cur" ) ) --debug-all --debug-more --nofork' -- "$cur" ) )
;; ;;
pki) pki)
COMPREPLY=( $( compgen -W '--gen --issue --keyid --print --pub \ COMPREPLY=( $( compgen -W '--gen --issue --keyid --print --pub
--req --self --signcrl --verify' -- "$cur" ) ) --req --self --signcrl --verify' -- "$cur" ) )
;; ;;
pool) pool)

View File

@ -25,31 +25,31 @@ _iptables()
;; ;;
-j) -j)
if [[ "$table" == "-t filter" || -z "$table" ]]; then if [[ "$table" == "-t filter" || -z "$table" ]]; then
COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT \ COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT
`iptables $table -nL | sed -ne "$chain" \ `iptables $table -nL | sed -ne "$chain" \
-e "s/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//"`' -- \ -e "s/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//"`' -- \
"$cur" ) ) "$cur" ) )
elif [[ $table == "-t nat" ]]; then elif [[ $table == "-t nat" ]]; then
COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT \ COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT MIRROR SNAT
MIRROR SNAT DNAT MASQUERADE `iptables $table -nL | \ DNAT MASQUERADE `iptables $table -nL | \
sed -ne "$chain" -e "s/OUTPUT|PREROUTING|POSTROUTING//"`' \ sed -ne "$chain" -e "s/OUTPUT|PREROUTING|POSTROUTING//"`' \
-- "$cur" ) ) -- "$cur" ) )
elif [[ $table == "-t mangle" ]]; then elif [[ $table == "-t mangle" ]]; then
COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT \ COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT MARK TOS
MARK TOS `iptables $table -nL | sed -ne "$chain" \ `iptables $table -nL | sed -ne "$chain" \
-e "s/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//"`' -- \ -e "s/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//"`' -- \
"$cur" ) ) "$cur" ) )
fi fi
;; ;;
*) *)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--in-interface --out-interface --source \ COMPREPLY=( $( compgen -W '--in-interface --out-interface --source
--destination --protocol --fragment --match --append \ --destination --protocol --fragment --match --append --delete
--delete --insert --replace --list --flush --zero --new \ --insert --replace --list --flush --zero --new --delete-chain
--delete-chain --policy --rename-chain --proto --source \ --policy --rename-chain --proto --source --destination
--destination --in-interface --jump --match --numeric \ --in-interface --jump --match --numeric --out-interface --table
--out-interface --table --verbose --line-numbers --exact \ --verbose --line-numbers --exact --fragment --modprobe
--fragment --modprobe --set-counters --version' -- "$cur") ) --set-counters --version' -- "$cur" ) )
fi fi
;; ;;
esac esac

View File

@ -28,14 +28,13 @@ _ipv6calc()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --debug --quiet --in \ COMPREPLY=( $( compgen -W '--help --debug --quiet --in --out --action
--out --action --examples --showinfo --show_types \ --examples --showinfo --show_types --machine_readable --db-geoip
--machine_readable --db-geoip --db-geoip-default \ --db-geoip-default --db-ip2location-ipv4 --db-ip2location-ipv6
--db-ip2location-ipv4 --db-ip2location-ipv6 \ --lowercase --uppercase --printprefix --printsuffix --maskprefix
--lowercase --uppercase --printprefix --printsuffix \ --masksuffix --printstart --printend --printcompressed
--maskprefix --masksuffix --printstart --printend \ --printuncompressed --printfulluncompressed --printmirrored' \
--printcompressed --printuncompressed \ -- "$cur" ) )
--printfulluncompressed --printmirrored' -- "$cur" ) )
return 0 return 0
fi fi

View File

@ -7,8 +7,8 @@ _iwconfig()
case $prev in case $prev in
mode) mode)
COMPREPLY=( $( compgen -W 'managed ad-hoc master \ COMPREPLY=( $( compgen -W 'managed ad-hoc master repeater secondary
repeater secondary monitor' -- "$cur" ) ) monitor' -- "$cur" ) )
return 0 return 0
;; ;;
essid) essid)
@ -80,8 +80,8 @@ _iwconfig()
_available_interfaces -w _available_interfaces -w
fi fi
else else
COMPREPLY=( $( compgen -W 'essid nwid mode freq channel sens mode \ COMPREPLY=( $( compgen -W 'essid nwid mode freq channel sens mode ap
ap nick rate rts frag enc key power txpower commit' -- "$cur" ) ) nick rate rts frag enc key power txpower commit' -- "$cur" ) )
fi fi
} && } &&

View File

@ -12,9 +12,9 @@ _iwlist()
_available_interfaces -w _available_interfaces -w
fi fi
else else
COMPREPLY=( $( compgen -W 'scan scanning freq frequency \ COMPREPLY=( $( compgen -W 'scan scanning freq frequency channel rate
channel rate bit bitrate key enc encryption power \ bit bitrate key enc encryption power txpower retry ap accesspoint
txpower retry ap accesspoint peers event' -- "$cur" ) ) peers event' -- "$cur" ) )
fi fi
} && } &&
complete -F _iwlist iwlist complete -F _iwlist iwlist

View File

@ -42,9 +42,9 @@ _jarsigner()
if ! $jar ; then if ! $jar ; then
if [[ "$cur" == -* ]] ; then if [[ "$cur" == -* ]] ; then
# Documented as "should not be used": -internalsf, -sectionsonly # Documented as "should not be used": -internalsf, -sectionsonly
COMPREPLY=( $( compgen -W '-keystore -storepass -storetype \ COMPREPLY=( $( compgen -W '-keystore -storepass -storetype
-keypass -sigfile -signedjar -digestalg -sigalg -verify \ -keypass -sigfile -signedjar -digestalg -sigalg -verify
-verbose -certs -tsa -tsacert -altsigner -altsignerpath \ -verbose -certs -tsa -tsacert -altsigner -altsignerpath
-protected -providerName -providerClass -providerArg' \ -protected -providerName -providerClass -providerArg' \
-- "$cur" ) ) -- "$cur" ) )
fi fi

View File

@ -14,8 +14,8 @@ _heimdal_realms()
_heimdal_encodings() _heimdal_encodings()
{ {
COMPREPLY=( $( compgen -W 'des-cbc-mcrc des-cbc-md4 des-cbc-md5 \ COMPREPLY=( $( compgen -W 'des-cbc-mcrc des-cbc-md4 des-cbc-md5
des3-cbc-sha1 arcfour-hmac-md5 aes128-cts-hmac-sha1-96 \ des3-cbc-sha1 arcfour-hmac-md5 aes128-cts-hmac-sha1-96
aes256-cts-hmac-sha1-96' -- "$cur" ) ) aes256-cts-hmac-sha1-96' -- "$cur" ) )
} }
@ -51,7 +51,7 @@ _ktutil()
$split && return 0 $split && return 0
commands='add change copy get list remove rename purge srvconvert \ commands='add change copy get list remove rename purge srvconvert
srv2keytab srvcreate key2srvtab' srv2keytab srvcreate key2srvtab'
for (( i=1; i < cword; i++ )); do for (( i=1; i < cword; i++ )); do
@ -71,14 +71,14 @@ _ktutil()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
case $command in case $command in
add) add)
options='-p --principal -V -e --enctype -w --password -r \ options='-p --principal -V -e --enctype -w --password -r
--random -s --no-salt -h --hex' --random -s --no-salt -h --hex'
;; ;;
change) change)
options='-r --realm -a --admin-server -s --server-port' options='-r --realm -a --admin-server -s --server-port'
;; ;;
get) get)
options='-p --principal -e --enctype -r --realm -a \ options='-p --principal -e --enctype -r --realm -a
--admin-server -s server --server-port' --admin-server -s server --server-port'
;; ;;
list) list)

View File

@ -30,7 +30,7 @@ _larch()
distribution-name notify my-notifier mail-new-categories \ distribution-name notify my-notifier mail-new-categories \
mail-new-branches mail-new-versions mail-new-revisions \ mail-new-branches mail-new-versions mail-new-revisions \
notify-library notify-browser push-new-revisions sendmail-mailx' \ notify-library notify-browser push-new-revisions sendmail-mailx' \
"$cur" )) "$cur" ) )
fi fi
return 0 return 0

View File

@ -11,8 +11,8 @@ _ldapvi()
return 0 return 0
;; ;;
-Y|--sasl-mech) -Y|--sasl-mech)
COMPREPLY=( $( compgen -W 'EXTERNAL GSSAPI DIGEST-MD5 \ COMPREPLY=( $( compgen -W 'EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5
CRAM-MD5 PLAIN ANONYMOUS' -- "$cur" ) ) PLAIN ANONYMOUS' -- "$cur" ) )
return 0 return 0
;; ;;
--bind) --bind)
@ -20,7 +20,7 @@ _ldapvi()
return 0 return 0
;; ;;
--bind-dialog) --bind-dialog)
COMPREPLY=( $( compgen -W 'never auto always' -- $cur ) ) COMPREPLY=( $( compgen -W 'never auto always' -- "$cur" ) )
return 0 return 0
;; ;;
--scope) --scope)
@ -37,8 +37,7 @@ _ldapvi()
return 0 return 0
;; ;;
--tls) --tls)
COMPREPLY=( $( compgen -W 'never allow try strict' \ COMPREPLY=( $( compgen -W 'never allow try strict' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
esac esac

View File

@ -33,16 +33,16 @@ _lilo()
;; ;;
-T) -T)
# topic completion # topic completion
COMPREPLY=( $( compgen -W 'help ChRul EBDA geom geom= \ COMPREPLY=( $( compgen -W 'help ChRul EBDA geom geom= table=
table= video' -- "$cur" ) ) video' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
# relevant options completion # relevant options completion
COMPREPLY=( $( compgen -W '-A -b -c -C -d -f -g -i -I -l -L -m \ COMPREPLY=( $( compgen -W '-A -b -c -C -d -f -g -i -I -l -L -m -M -p -P
-M -p -P -q -r -R -s -S -t -T -u -U -v -V -w -x -z' -- "$cur" ) ) -q -r -R -s -S -t -T -u -U -v -V -w -x -z' -- "$cur" ) )
fi fi
} && } &&
complete -F _lilo lilo complete -F _lilo lilo

View File

@ -10,12 +10,12 @@ _links()
COMPREPLY=( $( compgen -W '--help' -- "$cur" ) ) COMPREPLY=( $( compgen -W '--help' -- "$cur" ) )
;; ;;
-*) -*)
COMPREPLY=( $( compgen -W '-async-dns -max-connections \ COMPREPLY=( $( compgen -W '-async-dns -max-connections
-max-connections-to-host -retries -receive-timeout \ -max-connections-to-host -retries -receive-timeout
-unrestartable-receive-timeout -format-cache-size \ -unrestartable-receive-timeout -format-cache-size
-memory-cache-size -http-proxy -ftp-proxy -download-dir \ -memory-cache-size -http-proxy -ftp-proxy -download-dir
-assume-codepage -anonymous -dump -no-connect \ -assume-codepage -anonymous -dump -no-connect -source -version
-source -version -help' -- "$cur" ) ) -help' -- "$cur" ) )
;; ;;
*) *)
if [[ -r ~/.links/links.his ]]; then if [[ -r ~/.links/links.his ]]; then

View File

@ -82,17 +82,16 @@ _lintian()
local action lint_actions general_opts behaviour_opts \ local action lint_actions general_opts behaviour_opts \
configuration_opts selection_opts configuration_opts selection_opts
lint_actions="--setup-lab --remove-lab --check --check-part --tags \ lint_actions="--setup-lab --remove-lab --check --check-part --tags
--tags-from-file --ftp-master-rejects --dont-check-part \ --tags-from-file --ftp-master-rejects --dont-check-part --unpack
--unpack --remove" --remove"
general_opts="--help --version --print-version --verbose --debug --quiet" general_opts="--help --version --print-version --verbose --debug --quiet"
behaviour_opts="--info --display-info --display-experimental --pedantic \ behaviour_opts="--info --display-info --display-experimental --pedantic
--display-level --suppress-tags \ --display-level --suppress-tags --suppress-tags-from-file --no-override
--suppress-tags-from-file --no-override --show-overrides \ --show-overrides --color --unpack-info --md5sums --checksums
--color --unpack-info --md5sums --checksums --allow-root \ --allow-root --fail-on-warnings --keep-lab"
--fail-on-warnings --keep-lab" configuration_opts="--cfg --lab --archivedir --dist --area --section --arch
configuration_opts="--cfg --lab --archivedir --dist --area --section \ --root"
--arch --root"
selection_opts="--all --binary --source --udeb --packages-file" selection_opts="--all --binary --source --udeb --packages-file"
if [[ "$prev" = -* ]]; then if [[ "$prev" = -* ]]; then
@ -126,7 +125,7 @@ _lintian()
case "$cur" in case "$cur" in
--*) --*)
COMPREPLY=($(compgen -W "$lint_actions $general_opts \ COMPREPLY=($(compgen -W "$lint_actions $general_opts
$behaviour_opts $configuration_opts" -- "$cur")) $behaviour_opts $configuration_opts" -- "$cur"))
;; ;;
*,) *,)

View File

@ -9,8 +9,8 @@ _lisp()
# completing an option (may or may not be separated by a space) # completing an option (may or may not be separated by a space)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init \ COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init
-dynamic-space-size -hinit -noinit -nositeinit -load -slave ' \ -dynamic-space-size -hinit -noinit -nositeinit -load -slave' \
-- "$cur" ) ) -- "$cur" ) )
else else
_filedir _filedir

View File

@ -11,8 +11,8 @@ _list_lists()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview \ COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview --bare
--bare --help' -- "$cur" ) ) --help' -- "$cur" ) )
fi fi
} && } &&

View File

@ -11,12 +11,12 @@ _list_members()
return 0 return 0
;; ;;
-d|--digest) -d|--digest)
COMPREPLY=( $( compgen -W 'mime plain' -- "$cur") ) COMPREPLY=( $( compgen -W 'mime plain' -- "$cur" ) )
return 0 return 0
;; ;;
-n|--nomail) -n|--nomail)
COMPREPLY=( $( compgen -W 'byadmin byuser bybounce unknown' \ COMPREPLY=( $( compgen -W 'byadmin byuser bybounce unknown' \
-- "$cur") ) -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -24,8 +24,8 @@ _list_members()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--output --regular --digest \ COMPREPLY=( $( compgen -W '--output --regular --digest --nomail
--nomail --fullnames --preserve --help' -- "$cur" ) ) --fullnames --preserve --help' -- "$cur" ) )
else else
_xfunc list_lists _mailman_lists _xfunc list_lists _mailman_lists
fi fi

View File

@ -6,8 +6,8 @@ _list_owners()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--with-listnames --moderators \ COMPREPLY=( $( compgen -W '--with-listnames --moderators --help' \
--help' -- "$cur" ) ) -- "$cur" ) )
else else
_xfunc list_lists _mailman_lists _xfunc list_lists _mailman_lists
fi fi

View File

@ -69,9 +69,9 @@ _pvscan()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--debug --exported --novolumegroup \ COMPREPLY=( $( compgen -W '--debug --exported --novolumegroup --help
--help --ignorelockingfailure --partial --short --uuid \ --ignorelockingfailure --partial --short --uuid --verbose
--verbose --version' -- "$cur" ) ) --version' -- "$cur" ) )
fi fi
} && } &&
complete -F _pvscan pvscan complete -F _pvscan pvscan
@ -83,10 +83,8 @@ _pvs()
case $prev in case $prev in
-o|-O|--options|--sort) -o|-O|--options|--sort)
COMPREPLY=( $( compgen -W 'pv_fmt pv_uuid \ COMPREPLY=( $( compgen -W 'pv_fmt pv_uuid pv_size pv_free pv_used
pv_size pv_free pv_used pv_name \ pv_name pv_attr pv_pe_count pv_pe_alloc_count' -- "$cur" ) )
pv_attr pv_pe_count \
pv_pe_alloc_count' -- "$cur" ) )
return 0 return 0
;; ;;
--units) --units)
@ -191,9 +189,9 @@ _pvmove()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--abort --autobackup \ COMPREPLY=( $( compgen -W '--abort --autobackup --background --debug
--background --debug --force --help --interval --test --verbose \ --force --help --interval --test --verbose --version --name' \
--version --name' -- "$cur" ) ) -- "$cur" ) )
else else
_lvm_physicalvolumes _lvm_physicalvolumes
fi fi
@ -231,11 +229,10 @@ _vgs()
case $prev in case $prev in
-o|-O|--options|--sort) -o|-O|--options|--sort)
COMPREPLY=( $( compgen -W 'vg_fmt vg_uuid vg_name \ COMPREPLY=( $( compgen -W 'vg_fmt vg_uuid vg_name vg_attr vg_size
vg_attr vg_size vg_free vg_sysid \ vg_free vg_sysid vg_extent_size vg_extent_count vg_free_count
vg_extent_size vg_extent_count vg_free_count \ max_lv max_pv pv_count lv_count snap_count vg_seqno' \
max_lv max_pv pv_count lv_count snap_count \ -- "$cur" ) )
vg_seqno' -- "$cur" ) )
return 0 return 0
;; ;;
--units) --units)
@ -285,11 +282,10 @@ _vgchange()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--autobackup --alloc \ COMPREPLY=( $( compgen -W '--autobackup --alloc --partial --debug
--partial --debug --help --ignorelockingfailure \ --help --ignorelockingfailure --test --uuid --verbose --version
--test --uuid --verbose --version \ --available --resizeable --logicalvolume --addtag --deltag' \
--available --resizeable --logicalvolume \ -- "$cur" ) )
--addtag --deltag' -- "$cur" ) )
else else
_lvm_volumegroups _lvm_volumegroups
fi fi
@ -317,10 +313,9 @@ _vgcreate()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc \ COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc --debug --help
--debug --help --maxlogicalvolumes --metadatatype \ --maxlogicalvolumes --metadatatype --maxphysicalvolumes
--maxphysicalvolumes --physicalextentsize --test \ --physicalextentsize --test --verbose --version' -- "$cur" ) )
--verbose --version' -- "$cur" ) )
else else
local args local args
_lvm_count_args @(-A|--autobackup|-M|--metadatatype|-s|--physicalextentsize) _lvm_count_args @(-A|--autobackup|-M|--metadatatype|-s|--physicalextentsize)
@ -562,9 +557,8 @@ _vgsplit()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--autobackup --debug \ COMPREPLY=( $( compgen -W '--autobackup --debug --help --list
--help --list --metadatatype --test \ --metadatatype --test --verbose --version' -- "$cur" ) )
--verbose --version' -- "$cur" ) )
else else
local args local args
_lvm_count_args @(-A|--autobackup|-M|--metadatatype) _lvm_count_args @(-A|--autobackup|-M|--metadatatype)
@ -608,9 +602,9 @@ _lvs()
case $prev in case $prev in
-o|-O|--options|--sort) -o|-O|--options|--sort)
COMPREPLY=( $( compgen -W 'lv_uuid lv_name lv_attr lv_minor \ COMPREPLY=( $( compgen -W 'lv_uuid lv_name lv_attr lv_minor lv_size
lv_size seg_count origin snap_percent segtype stripes \ seg_count origin snap_percent segtype stripes stripesize
stripesize chunksize seg_start seg_size' -- "$cur" ) ) chunksize seg_start seg_size' -- "$cur" ) )
return 0 return 0
;; ;;
--units) --units)
@ -839,17 +833,13 @@ _lvm()
_init_completion || return _init_completion || return
if [[ $cword -eq 1 ]]; then if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W 'dumpconfig help lvchange \ COMPREPLY=( $( compgen -W 'dumpconfig help lvchange lvcreate lvdisplay
lvcreate lvdisplay lvextend lvmchange \ lvextend lvmchange lvmdiskscan lvmsadc lvmsar lvreduce lvremove
lvmdiskscan lvmsadc lvmsar lvreduce \ lvrename lvresize lvs lvscan pvchange pvcreate pvdata pvdisplay
lvremove lvrename lvresize lvs lvscan \ pvmove pvremove pvresize pvs pvscan vgcfgbackup vgcfgrestore
pvchange pvcreate pvdata pvdisplay pvmove \ vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend
pvremove pvresize pvs pvscan vgcfgbackup \ vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgs vgscan
vgcfgrestore vgchange vgck vgconvert \ vgsplit version' -- "$cur" ) )
vgcreate vgdisplay vgexport vgextend \
vgimport vgmerge vgmknodes vgreduce \
vgremove vgrename vgs vgscan vgsplit \
version' -- "$cur" ) )
else else
case ${words[1]} in case ${words[1]} in
pvchange) pvchange)

View File

@ -7,10 +7,10 @@ _lzma()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 \ COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9
--help --decompress --compress --keep --force --suffix \ --help --decompress --compress --keep --force --suffix --test
--test --stdout --quiet --verbose --license --list \ --stdout --quiet --verbose --license --list --version --small
--version --small --fast --best --text' -- "$cur" ) ) --fast --best --text' -- "$cur" ) )
return 0 return 0
fi fi

View File

@ -20,13 +20,13 @@ _lzop()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 -P \ COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 -P
--fast --best --decompress --extract --test --list --ls --info \ --fast --best --decompress --extract --test --list --ls --info
--sysinfo --license --help --version --stdout --output --path \ --sysinfo --license --help --version --stdout --output --path
--force --no-checksum --no-name --name --no-mode --no-time \ --force --no-checksum --no-name --name --no-mode --no-time --suffix
--suffix --keep --delete --crc32 --no-warn --ignore-warn --quiet \ --keep --delete --crc32 --no-warn --ignore-warn --quiet --verbose
--verbose --no-stdin --filter --checksum --no-color --mono \ --no-stdin --filter --checksum --no-color --mono --color' \
--color' -- "$cur" ) ) -- "$cur" ) )
return 0 return 0
fi fi

View File

@ -6,7 +6,7 @@ _mailmanctl()
_init_completion || return _init_completion || return
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--no-restart --run-as-user \ COMPREPLY=( $( compgen -W '--no-restart --run-as-user
--stale-lock-cleanup --quiet --help' -- "$cur" ) ) --stale-lock-cleanup --quiet --help' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'start stop restart reopen' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'start stop restart reopen' -- "$cur" ) )

View File

@ -13,8 +13,8 @@ _makepkg()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-l --linkadd -p --prepend \ COMPREPLY=( $( compgen -W '-l --linkadd -p --prepend -c --chown' \
-c --chown' -- "$cur") ) -- "$cur" ) )
return 0 return 0
fi fi

View File

@ -19,13 +19,13 @@ _mdadm_raid_level()
case $mode in case $mode in
create) create)
COMPREPLY=( $( compgen -W 'linear raid0 0 stripe raid1 1 mirror \ COMPREPLY=( $( compgen -W 'linear raid0 0 stripe raid1 1 mirror
raid4 4 raid5 5 raid6 6 raid10 10 multipath mp faulty' \ raid4 4 raid5 5 raid6 6 raid10 10 multipath mp faulty' \
-- "$cur" ) ) -- "$cur" ) )
;; ;;
build) build)
COMPREPLY=( $( compgen -W 'linear stripe raid0 0 raid1 multipath \ COMPREPLY=( $( compgen -W 'linear stripe raid0 0 raid1 multipath mp
mp faulty' -- "$cur" ) ) faulty' -- "$cur" ) )
;; ;;
esac esac
} }
@ -42,16 +42,16 @@ _mdadm_raid_layout()
case $level in case $level in
raid5) raid5)
COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric \ COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric
right-asymmetric right-symmetric la ra ls rs' -- "$cur" ) ) right-asymmetric right-symmetric la ra ls rs' -- "$cur" ) )
;; ;;
raid10) raid10)
COMPREPLY=( $( compgen -W 'n o p' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'n o p' -- "$cur" ) )
;; ;;
faulty) faulty)
COMPREPLY=( $( compgen -W 'write-transient wt read-transient rt \ COMPREPLY=( $( compgen -W 'write-transient wt read-transient rt
write-persistent wp read-persistent rp write-all read-fixable \ write-persistent wp read-persistent rp write-all read-fixable
rf clear flush none' -- $cur ) ) rf clear flush none' -- "$cur" ) )
;; ;;
esac esac
} }
@ -63,7 +63,7 @@ _mdadm_auto_flag()
_mdadm_update_flag() _mdadm_update_flag()
{ {
COMPREPLY=( $( compgen -W 'sparc2.2 summaries uuid name homehost resync \ COMPREPLY=( $( compgen -W 'sparc2.2 summaries uuid name homehost resync
byteorder super-minor' -- "$cur" ) ) byteorder super-minor' -- "$cur" ) )
} }
@ -98,45 +98,44 @@ _mdadm()
$split && return 0 $split && return 0
local options local options='--help --help-options --version --verbose --quiet --brief
options='--help --help-options --version --verbose --quiet \ --force --config= --scan --metadata= --homehost='
--brief --force --config= --scan --metadata= --homehost='
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
if [[ $cword -eq 1 ]] ; then if [[ $cword -eq 1 ]] ; then
COMPREPLY=( $( compgen -W "$options --assemble --build \ COMPREPLY=( $( compgen -W "$options --assemble --build --create
--create --monitor --grow" -- "$cur" ) ) --monitor --grow" -- "$cur" ) )
else else
case ${words[cword-1]} in case ${words[cword-1]} in
-A|--assemble) -A|--assemble)
COMPREPLY=( $( compgen -W "$options --uuid= \ COMPREPLY=( $( compgen -W "$options --uuid= --super-minor=
--super-minor= --name= --force --run \ --name= --force --run --no-degraded --auto= --bitmap=
--no-degraded --auto= --bitmap= --backup-file= \ --backup-file= --update= --auto-update-homehost" \
--update= --auto-update-homehost" -- "$cur" ) ) -- "$cur" ) )
;; ;;
-B|-C|-G|--build|--create|--grow) -B|-C|-G|--build|--create|--grow)
COMPREPLY=( $( compgen -W "$options --raid-devices= \ COMPREPLY=( $( compgen -W "$options --raid-devices=
--spare-devices= --size= --chunk= --rounding= \ --spare-devices= --size= --chunk= --rounding= --level=
--level= --layout= --parity= --bitmap= \ --layout= --parity= --bitmap= --bitmap-chunk=
--bitmap-chunk= --write-mostly --write-behind= \ --write-mostly --write-behind= --assume-clean
--assume-clean --backup-file= --name= --run \ --backup-file= --name= --run --force --auto=" \
--force --auto=" -- "$cur" ) ) -- "$cur" ) )
;; ;;
-F|--follow|--monitor) -F|--follow|--monitor)
COMPREPLY=( $( compgen -W "$options --mail --program \ COMPREPLY=( $( compgen -W "$options --mail --program
--alert --syslog --delay --daemonise \ --alert --syslog --delay --daemonise --pid-file
--pid-file --oneshot --test" -- "$cur" ) ) --oneshot --test" -- "$cur" ) )
;; ;;
/dev/*|--add|--fail|--remove) /dev/*|--add|--fail|--remove)
COMPREPLY=( $( compgen -W "$options --add --re-add \ COMPREPLY=( $( compgen -W "$options --add --re-add
--remove --fail --set-faulty" -- "$cur" ) ) --remove --fail --set-faulty" -- "$cur" ) )
;; ;;
*) *)
COMPREPLY=( $( compgen -W "$options --query --detail \ COMPREPLY=( $( compgen -W "$options --query --detail
--examine --sparc2.2 --examine-bitmap --run \ --examine --sparc2.2 --examine-bitmap --run --stop
--stop --readonly --readwrite \ --readonly --readwrite --zero-superblock --test" \
--zero-superblock --test" -- "$cur" ) ) -- "$cur" ) )
;; ;;
esac esac
fi fi

View File

@ -42,9 +42,9 @@ _mdtool()
;; ;;
"setup") "setup")
# TODO: at least return filenames after these options. # TODO: at least return filenames after these options.
COMPREPLY=( $( compgen -W 'install i uninstall u check-install \ COMPREPLY=( $( compgen -W 'install i uninstall u check-install
ci update up list l list-av la list-update lu rep-add ra \ ci update up list l list-av la list-update lu rep-add ra
rep-remove rr rep-update ru rep-list rl reg-update \ rep-remove rr rep-update ru rep-list rl reg-update
reg-build rgu info rep-build rb pack p help h dump-file' \ reg-build rgu info rep-build rb pack p help h dump-file' \
-- "$cur" ) ) -- "$cur" ) )
return 0 return 0
@ -52,7 +52,7 @@ _mdtool()
esac esac
fi fi
COMPREPLY=( $( compgen -W 'gsetup build dbgen project-export \ COMPREPLY=( $( compgen -W 'gsetup build dbgen project-export
generate-makefiles gettext-update setup -q' -- "$cur" ) ) generate-makefiles gettext-update setup -q' -- "$cur" ) )
return 0 return 0

View File

@ -7,9 +7,8 @@ _mii_diag()
case $prev in case $prev in
-F|-A|--advertise|--fixed-speed) -F|-A|--advertise|--fixed-speed)
COMPREPLY=( $( compgen -W '100baseT4 100baseTx \ COMPREPLY=( $( compgen -W '100baseT4 100baseTx 100baseTx-FD
100baseTx-FD 100baseTx-HD 10baseT 10baseT-FD \ 100baseTx-HD 10baseT 10baseT-FD 10baseT-HD' -- "$cur" ) )
10baseT-HD' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac

View File

@ -7,12 +7,12 @@ _mii_tool()
case $prev in case $prev in
-F|--force) -F|--force)
COMPREPLY=( $( compgen -W '100baseTx-FD 100baseTx-HD \ COMPREPLY=( $( compgen -W '100baseTx-FD 100baseTx-HD 10baseT-FD
10baseT-FD 10baseT-HD' -- "$cur" ) ) 10baseT-HD' -- "$cur" ) )
return 0 return 0
;; ;;
-A|--advertise) -A|--advertise)
COMPREPLY=( $( compgen -W '100baseT4 100baseTx-FD 100baseTx-HD \ COMPREPLY=( $( compgen -W '100baseT4 100baseTx-FD 100baseTx-HD
10baseT-FD 10baseT-HD' -- "$cur" ) ) 10baseT-FD 10baseT-HD' -- "$cur" ) )
return 0 return 0
;; ;;

View File

@ -24,8 +24,8 @@ _minicom()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-s -o -m -M -z -l -L -w -a -t \ COMPREPLY=( $( compgen -W '-s -o -m -M -z -l -L -w -a -t -c -S -d -p -C
-c -S -d -p -C -T -7 -8' -- "$cur" ) ) -T -7 -8' -- "$cur" ) )
return 0 return 0
else else
local confdir local confdir

View File

@ -224,7 +224,7 @@ _mplayer()
square-pixel ccir601-pixel cr-left= cr-right= cr-top= cr-bot= square-pixel ccir601-pixel cr-left= cr-right= cr-top= cr-bot=
ck-rmin= ck-gmin= ck-bmin= ck-rmax= ck-gmax= ck-bmax= ck-r= ck-rmin= ck-gmin= ck-bmin= ck-rmax= ck-gmax= ck-bmax= ck-r=
ck-g= ck-b= ignore-cache= ol-osd= olh-cor= olw-cor= olx-cor= ck-g= ck-b= ignore-cache= ol-osd= olh-cor= olw-cor= olx-cor=
oly-cor= overlay overlay-ratio= update-cache' -- "$cur" )) oly-cor= overlay overlay-ratio= update-cache' -- "$cur" ) )
return 0 return 0
;; ;;
-tv) -tv)

View File

@ -32,10 +32,10 @@ _msynctool()
;; ;;
esac esac
COMPREPLY=( $( compgen -W '--listgroups --listplugins --listobjects \ COMPREPLY=( $( compgen -W '--listgroups --listplugins --listobjects
--showformats --showgroup --sync --filter-objtype --slow-sync \ --showformats --showgroup --sync --filter-objtype --slow-sync --wait
--wait --multi --addgroup --delgroup --addmember --configure \ --multi --addgroup --delgroup --addmember --configure --manual
--manual --configdir --conflict' -- "$cur" ) ) --configdir --conflict' -- "$cur" ) )
} && } &&
complete -F _msynctool msynctool complete -F _msynctool msynctool

View File

@ -17,9 +17,9 @@ _munin_update()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--force-root --[no]force-root \ COMPREPLY=( $( compgen -W '--force-root --noforce-root --service --host
--service --host --config --help --debug --nodebug \ --config --help --debug --nodebug --fork --nofork --stdout
--fork --nofork --stdout --nostdout --timeout' -- "$cur" ) ) --nostdout --timeout' -- "$cur" ) )
fi fi
} && } &&
complete -F _munin_update munin-update complete -F _munin_update munin-update

View File

@ -143,8 +143,8 @@ _mutt()
case $cur in case $cur in
-*) -*)
COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n \ COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n -p -Q -R -s
-p -Q -R -s -v -x -y -z -Z -h' -- "$cur" ) ) -v -x -y -z -Z -h' -- "$cur" ) )
return 0 return 0
;; ;;
*) *)

View File

@ -42,10 +42,9 @@ _mysqladmin()
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
COMPREPLY+=( \ COMPREPLY+=( $( compgen -W 'create debug drop extended-status flush-hosts
$( compgen -W 'create debug drop extended-status flush-hosts \ flush-logs flush-status flush-tables flush-threads flush-privileges
flush-logs flush-status flush-tables flush-threads flush-privileges \ kill password old-password ping processlist reload refresh shutdown
kill password old-password ping processlist reload refresh shutdown \
status start-slave stop-slave variables version' -- "$cur" ) ) status start-slave stop-slave variables version' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace

View File

@ -25,22 +25,22 @@ _nmap()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-iL -iR --exclude --excludefile -sL -sP \ COMPREPLY=( $( compgen -W '-iL -iR --exclude --excludefile -sL -sP -PN
-PN -PS -PA -PU -PY -PE -PP -PM -PO -n -R --dns-servers \ -PS -PA -PU -PY -PE -PP -PM -PO -n -R --dns-servers --system-dns
--system-dns --traceroute -sS -sT -sA -sW -sM -sU -sN -sF -sX \ --traceroute -sS -sT -sA -sW -sM -sU -sN -sF -sX --scanflags -sI
--scanflags -sI -sY -sZ -sO -b -p -F -r --top-ports --port-ratio \ -sY -sZ -sO -b -p -F -r --top-ports --port-ratio -sV
-sV --version-intensity --version-light --version-all \ --version-intensity --version-light --version-all --version-trace
--version-trace -sC --script= --script-args= --script-trace \ -sC --script= --script-args= --script-trace --script-updatedb -O
--script-updatedb -O --osscan-limit --osscan-guess -T0 -T1 -T2 -T3 \ --osscan-limit --osscan-guess -T0 -T1 -T2 -T3 -T4 -T5
-T4 -T5 --min-hostgroup --max-hostgroup --min-parallelism \ --min-hostgroup --max-hostgroup --min-parallelism --max-parallelism
--max-parallelism --min-rtt-timeout --max-rtt-timeout \ --min-rtt-timeout --max-rtt-timeout --initial-rtt-timeout
--initial-rtt-timeout --max-retries --host-timeout --scan-delay \ --max-retries --host-timeout --scan-delay --max-scan-delay
--max-scan-delay --min-rate --max-rate -f --mtu -D -S -e \ --min-rate --max-rate -f --mtu -D -S -e --source-port --data-length
--source-port --data-length --ip-options --ttl --spoof-mac \ --ip-options --ttl --spoof-mac --badsum --adler32 -oN -oX -oS -oG
--badsum --adler32 -oN -oX -oS -oG -oA -v -d --reason --open \ -oA -v -d --reason --open --packet-trace --iflist --log-errors
--packet-trace --iflist --log-errors --append-output --resume \ --append-output --resume --stylesheet --webxml --no-stylesheet -6
--stylesheet --webxml --no-stylesheet -6 -A --datadir --send-eth \ -A --datadir --send-eth --send-ip --privilege--unprivileged -V
--send-ip --privilege--unprivileged -V -h' -- "$cur" ) ) -h' -- "$cur" ) )
else else
_known_hosts_real "$cur" _known_hosts_real "$cur"
fi fi

View File

@ -2,33 +2,33 @@
_nmcli_list() _nmcli_list()
{ {
COMPREPLY=( $( compgen -W '$1' -- $cur ) ) COMPREPLY=( $( compgen -W '$1' -- "$cur" ) )
} }
_nmcli_con_id() _nmcli_con_id()
{ {
local IFS=$'\n' local IFS=$'\n'
COMPREPLY=( $( compgen -W "$(nmcli con list 2>/dev/null | \ COMPREPLY=( $( compgen -W "$(nmcli con list 2>/dev/null | \
tail -n +2 | awk -F ' {2,}' '{print $1 }')" -- $cur ) ) tail -n +2 | awk -F ' {2,}' '{print $1 }')" -- "$cur" ) )
} }
_nmcli_con_uuid() _nmcli_con_uuid()
{ {
COMPREPLY=( $( compgen -W "$(nmcli con list 2>/dev/null | \ COMPREPLY=( $( compgen -W "$(nmcli con list 2>/dev/null | \
tail -n +2 | awk -F ' {2,}' '{print $2}')" -- $cur ) ) tail -n +2 | awk -F ' {2,}' '{print $2}')" -- "$cur" ) )
} }
_nmcli_ap_ssid() _nmcli_ap_ssid()
{ {
local IFS=$'\n' local IFS=$'\n'
COMPREPLY=( $( compgen -W "$(nmcli dev wifi list 2>/dev/null | \ COMPREPLY=( $( compgen -W "$(nmcli dev wifi list 2>/dev/null | \
tail -n +2 | awk -F ' {2,}' '{print $1}')" -- $cur ) ) tail -n +2 | awk -F ' {2,}' '{print $1}')" -- "$cur" ) )
} }
_nmcli_ab_bssid() _nmcli_ab_bssid()
{ {
COMPREPLY=( $( compgen -W "$(nmcli dev wifi list 2>/dev/null | \ COMPREPLY=( $( compgen -W "$(nmcli dev wifi list 2>/dev/null | \
tail -n +2 | awk -F ' {2,}' '{print $2}')" -- $cur ) ) tail -n +2 | awk -F ' {2,}' '{print $2}')" -- "$cur" ) )
} }
_nmcli() _nmcli()
@ -38,11 +38,11 @@ _nmcli()
case $prev in case $prev in
-m|--mode) -m|--mode)
COMPREPLY=( $( compgen -W 'tabular multiline' -- $cur ) ) COMPREPLY=( $( compgen -W 'tabular multiline' -- "$cur" ) )
return 0 return 0
;; ;;
-f|--fields) -f|--fields)
COMPREPLY=( $( compgen -W 'all common' -- $cur ) ) COMPREPLY=( $( compgen -W 'all common' -- "$cur" ) )
return 0 return 0
;; ;;
-e|--escape) -e|--escape)
@ -73,10 +73,10 @@ _nmcli()
if [[ $cword -eq 1 ]] ; then if [[ $cword -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--terse --pretty --mode --fields \ COMPREPLY=( $( compgen -W '--terse --pretty --mode --fields
--escape --version --help' -- $cur ) ) --escape --version --help' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W "nm con dev" -- $cur ) ) COMPREPLY=( $( compgen -W "nm con dev" -- "$cur" ) )
fi fi
else else
local object=${words[1]} local object=${words[1]}
@ -107,50 +107,50 @@ _nmcli()
;; ;;
esac esac
COMPREPLY=( $( compgen -W 'status permissions enable sleep \ COMPREPLY=( $( compgen -W 'status permissions enable sleep
wifi wwan wimax' -- $cur ) ) wifi wwan wimax' -- "$cur" ) )
;; ;;
con) con)
case $command in case $command in
list) list)
COMPREPLY=( $( compgen -W 'id uuid' -- $cur ) ) COMPREPLY=( $( compgen -W 'id uuid' -- "$cur" ) )
return 0 return 0
;; ;;
up) up)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--nowait --timeout' \ COMPREPLY=( $( compgen -W '--nowait --timeout' \
-- $cur ) ) -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'id uuid iface ap nsp' \ COMPREPLY=( $( compgen -W 'id uuid iface ap nsp' \
-- $cur ) ) -- "$cur" ) )
fi fi
return 0 return 0
;; ;;
down) down)
COMPREPLY=( $( compgen -W 'id uuid' -- $cur ) ) COMPREPLY=( $( compgen -W 'id uuid' -- "$cur" ) )
return 0 return 0
;; ;;
delete) delete)
COMPREPLY=( $( compgen -W 'id uuid' -- $cur ) ) COMPREPLY=( $( compgen -W 'id uuid' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
COMPREPLY=( $( compgen -W 'list status up down delete' \ COMPREPLY=( $( compgen -W 'list status up down delete' \
-- $cur ) ) -- "$cur" ) )
;; ;;
dev) dev)
case $command in case $command in
list) list)
COMPREPLY=( $( compgen -W 'iface' -- $cur ) ) COMPREPLY=( $( compgen -W 'iface' -- "$cur" ) )
return 0 return 0
;; ;;
disconnect) disconnect)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--nowait --timeout' \ COMPREPLY=( $( compgen -W '--nowait --timeout' \
-- $cur ) ) -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'iface' -- $cur ) ) COMPREPLY=( $( compgen -W 'iface' -- "$cur" ) )
fi fi
return 0 return 0
;; ;;
@ -160,33 +160,33 @@ _nmcli()
case $subcommand in case $subcommand in
list) list)
COMPREPLY=( $( compgen -W 'iface bssid' \ COMPREPLY=( $( compgen -W 'iface bssid' \
-- $cur ) ) -- "$cur" ) )
return 0 return 0
;; ;;
connect) connect)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--private \ COMPREPLY=( $( compgen -W '--private
--nowait --timeout' -- $cur ) ) --nowait --timeout' -- "$cur" ) )
else else
if [[ "$prev" == "connect" ]]; then if [[ "$prev" == "connect" ]]; then
_nmcli_ap_ssid _nmcli_ap_ssid
else else
COMPREPLY=( $( compgen -W 'password \ COMPREPLY=( $( compgen -W 'password
wep-key-type iface bssid name' \ wep-key-type iface bssid name' \
-- $cur ) ) -- "$cur" ) )
fi fi
fi fi
return 0 return 0
;; ;;
esac esac
COMPREPLY=( $( compgen -W 'list connect' -- $cur ) ) COMPREPLY=( $( compgen -W 'list connect' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
COMPREPLY=( $( compgen -W 'status list disconnect wifi' \ COMPREPLY=( $( compgen -W 'status list disconnect wifi' \
-- $cur ) ) -- "$cur" ) )
;; ;;
esac esac

View File

@ -33,20 +33,17 @@ _openssl()
local commands command options formats local commands command options formats
commands='asn1parse ca ciphers crl crl2pkcs7 dgst dh dhparam dsa \ commands='asn1parse ca ciphers crl crl2pkcs7 dgst dh dhparam dsa dsaparam
dsaparam ec ecparam enc engine errstr gendh gendsa genrsa \ ec ecparam enc engine errstr gendh gendsa genrsa nseq ocsp passwd
nseq ocsp passwd pkcs12 pkcs7 pkcs8 prime rand req rsa \ pkcs12 pkcs7 pkcs8 prime rand req rsa rsautl s_client s_server s_time
rsautl s_client s_server s_time sess_id smime speed spkac \ sess_id smime speed spkac verify version x509 md2 md4 md5 rmd160 sha
verify version x509 md2 md4 md5 rmd160 sha sha1 aes-128-cbc \ sha1 aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc
aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc aes-256-ecb \ aes-256-ecb base64 bf bf-cbc bf-cfb bf-ecb bf-ofb camellia-128-cbc
base64 bf bf-cbc bf-cfb bf-ecb bf-ofb camellia-128-cbc \ camellia-128-ecb camellia-192-cbc camellia-192-ecb camellia-256-cbc
camellia-128-ecb camellia-192-cbc camellia-192-ecb \ camellia-256-ecb cast cast-cbc cast5-cbc cast5-cfb cast5-ecb cast5-ofb
camellia-256-cbc camellia-256-ecb cast cast-cbc cast5-cbc \ des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb
cast5-cfb cast5-ecb cast5-ofb des des-cbc des-cfb des-ecb \ des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb des-ofb des3 desx rc2
des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ede3 \ rc2-40-cbc rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb rc4 rc4-40'
des-ede3-cbc des-ede3-cfb des-ede3-ofb des-ofb des3 desx rc2 \
rc2-40-cbc rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb rc4 \
rc4-40'
if [[ $cword -eq 1 ]]; then if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
@ -69,7 +66,8 @@ _openssl()
_openssl_sections _openssl_sections
return 0 return 0
;; ;;
-inform|-outform|-keyform|-certform|-CAform|-CAkeyform|-dkeyform|-dcertform) -inform|-outform|-keyform|-certform|-CAform|-CAkeyform|-dkeyform|\
-dcertform)
formats='DER PEM' formats='DER PEM'
case $command in case $command in
x509) x509)
@ -87,8 +85,7 @@ _openssl()
return 0 return 0
;; ;;
-starttls) -starttls)
COMPREPLY=( $( compgen -W 'smtp pop3 imap ftp' \ COMPREPLY=( $( compgen -W 'smtp pop3 imap ftp' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-cipher) -cipher)
@ -102,48 +99,47 @@ _openssl()
# possible options for the command # possible options for the command
case $command in case $command in
asn1parse) asn1parse)
options='-inform -in -out -noout -offset -length -i -oid \ options='-inform -in -out -noout -offset -length -i -oid
-strparse' -strparse'
;; ;;
ca) ca)
options='-verbose -config -name -gencrl -revoke \ options='-verbose -config -name -gencrl -revoke -crl_reason
-crl_reason -crl_hold -crl_compromise \ -crl_hold -crl_compromise -crl_CA_compromise -crldays
-crl_CA_compromise -crldays -crlhours -crlexts \ -crlhours -crlexts -startdate -enddate -days -md
-startdate -enddate -days -md -policy -keyfile -key \ -policy -keyfile -key -passin -cert -selfsig -in -out
-passin -cert -selfsig -in -out -notext -outdir \ -notext -outdir -infiles -spkac -ss_cert -preserveDN
-infiles -spkac -ss_cert -preserveDN -noemailDN \ -noemailDN -batch -msie_hack -extensions -extfile
-batch -msie_hack -extensions -extfile -engine \ -engine -subj -utf8 -multivalue-rdn'
-subj -utf8 -multivalue-rdn'
;; ;;
ciphers) ciphers)
options='-v -ssl2 -ssl3 -tls1' options='-v -ssl2 -ssl3 -tls1'
;; ;;
crl) crl)
options='-inform -outform -text -in -out -noout -hash \ options='-inform -outform -text -in -out -noout -hash
-issuer -lastupdate -nextupdate -CAfile -CApath' -issuer -lastupdate -nextupdate -CAfile -CApath'
;; ;;
crl2pkcs7) crl2pkcs7)
options='-inform -outform -in -out -print_certs' options='-inform -outform -in -out -print_certs'
;; ;;
dgst) dgst)
options='-md5 -md4 -md2 -sha1 -sha -mdc2 -ripemd160 -dss1 \ options='-md5 -md4 -md2 -sha1 -sha -mdc2 -ripemd160 -dss1
-c -d -hex -binary -out -sign -verify -prverify \ -c -d -hex -binary -out -sign -verify -prverify
-signature' -signature'
;; ;;
dsa) dsa)
options='-inform -outform -in -passin -out -passout -des \ options='-inform -outform -in -passin -out -passout -des
-des3 -idea -text -noout -modulus -pubin -pubout' -des3 -idea -text -noout -modulus -pubin -pubout'
;; ;;
dsaparam) dsaparam)
options='-inform -outform -in -out -noout -text -C -rand \ options='-inform -outform -in -out -noout -text -C -rand
-genkey' -genkey'
;; ;;
enc) enc)
options='-ciphername -in -out -pass -e -d -a -A -k -kfile \ options='-ciphername -in -out -pass -e -d -a -A -k -kfile
-S -K -iv -p -P -bufsize -debug' -S -K -iv -p -P -bufsize -debug'
;; ;;
dhparam) dhparam)
options='-inform -outform -in -out -dsaparam -noout -text \ options='-inform -outform -in -out -dsaparam -noout -text
-C -2 -5 -rand' -C -2 -5 -rand'
;; ;;
gendsa) gendsa)
@ -153,75 +149,74 @@ _openssl()
options='-out -passout -des -des3 -idea -f4 -3 -rand' options='-out -passout -des -des3 -idea -f4 -3 -rand'
;; ;;
pkcs7) pkcs7)
options='-inform -outform -in -out -print_certs -text \ options='-inform -outform -in -out -print_certs -text
-noout' -noout'
;; ;;
rand) rand)
options='-out -rand -base64' options='-out -rand -base64'
;; ;;
req) req)
options='-inform -outform -in -passin -out -passout -text \ options='-inform -outform -in -passin -out -passout -text
-noout -verify -modulus -new -rand -newkey -newkey \ -noout -verify -modulus -new -rand -newkey -newkey
-nodes -key -keyform -keyout -md5 -sha1 -md2 -mdc2 \ -nodes -key -keyform -keyout -md5 -sha1 -md2 -mdc2
-config -x509 -days -asn1-kludge -newhdr -extensions \ -config -x509 -days -asn1-kludge -newhdr -extensions
-reqexts section' -reqexts section'
;; ;;
rsa) rsa)
options='-inform -outform -in -passin -out -passout \ options='-inform -outform -in -passin -out -passout
-sgckey -des -des3 -idea -text -noout -modulus -check \ -sgckey -des -des3 -idea -text -noout -modulus -check
-pubin -pubout -engine' -pubin -pubout -engine'
;; ;;
rsautl) rsautl)
options='-in -out -inkey -pubin -certin -sign -verify \ options='-in -out -inkey -pubin -certin -sign -verify
-encrypt -decrypt -pkcs -ssl -raw -hexdump -asn1parse' -encrypt -decrypt -pkcs -ssl -raw -hexdump -asn1parse'
;; ;;
s_client) s_client)
options='-connect -verify -cert -certform -key -keyform \ options='-connect -verify -cert -certform -key -keyform
-pass -CApath -CAfile -reconnect -pause -showcerts \ -pass -CApath -CAfile -reconnect -pause -showcerts
-debug -msg -nbio_test -state -nbio -crlf -ign_eof \ -debug -msg -nbio_test -state -nbio -crlf -ign_eof
-quiet -ssl2 -ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 \ -quiet -ssl2 -ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1
-bugs -cipher -starttls -engine -tlsextdebug \ -bugs -cipher -starttls -engine -tlsextdebug
-no_ticket -sess_out -sess_in -rand' -no_ticket -sess_out -sess_in -rand'
;; ;;
s_server) s_server)
options='-accept -context -verify -Verify -crl_check \ options='-accept -context -verify -Verify -crl_check
-crl_check_all -cert -certform -key -keyform -pass \ -crl_check_all -cert -certform -key -keyform -pass
-dcert -dcertform -dkey -dkeyform -dpass -dhparam \ -dcert -dcertform -dkey -dkeyform -dpass -dhparam
-nbio -nbio_test -crlf -debug -msg -state -CApath \ -nbio -nbio_test -crlf -debug -msg -state -CApath
-CAfile -nocert -cipher -quiet -no_tmp_rsa -ssl2 \ -CAfile -nocert -cipher -quiet -no_tmp_rsa -ssl2
-ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 -no_dhe \ -ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 -no_dhe
-bugs -hack -www -WWW -HTTP -engine -tlsextdebug \ -bugs -hack -www -WWW -HTTP -engine -tlsextdebug
-no_ticket -id_prefix -rand' -no_ticket -id_prefix -rand'
;; ;;
s_time) s_time)
options='-connect -www -cert -key -CApath -CAfile -reuse \ options='-connect -www -cert -key -CApath -CAfile -reuse
-new -verify -nbio -time -ssl2 -ssl3 -bugs -cipher' -new -verify -nbio -time -ssl2 -ssl3 -bugs -cipher'
;; ;;
sess_id) sess_id)
options='-inform -outform -in -out -text -noout -context \ options='-inform -outform -in -out -text -noout -context ID'
ID'
;; ;;
smime) smime)
options='-encrypt -decrypt -sign -verify -pk7out -des \ options='-encrypt -decrypt -sign -verify -pk7out -des -des3
-des3 -rc2-40 -rc2-64 -rc2-128 -aes128 -aes192 -aes256 \ -rc2-40 -rc2-64 -rc2-128 -aes128 -aes192 -aes256 -in
-in -certfile -signer -recip -inform -passin -inkey \ -certfile -signer -recip -inform -passin -inkey -out
-out -outform -content -to -from -subject -text -rand' -outform -content -to -from -subject -text -rand'
;; ;;
speed) speed)
options='-engine' options='-engine'
;; ;;
verify) verify)
options='-CApath -CAfile -purpose -untrusted -help \ options='-CApath -CAfile -purpose -untrusted -help
-issuer_checks -verbose -certificates' -issuer_checks -verbose -certificates'
;; ;;
x509) x509)
options='-inform -outform -keyform -CAform -CAkeyform -in \ options='-inform -outform -keyform -CAform -CAkeyform -in
-out -serial -hash -subject_hash -issuer_hash -subject \ -out -serial -hash -subject_hash -issuer_hash -subject
-issuer -nameopt -email -startdate -enddate -purpose \ -issuer -nameopt -email -startdate -enddate -purpose
-dates -modulus -fingerprint -alias -noout -trustout \ -dates -modulus -fingerprint -alias -noout -trustout
-clrtrust -clrreject -addtrust -addreject -setalias \ -clrtrust -clrreject -addtrust -addreject -setalias
-days -set_serial -signkey -x509toreq -req -CA -CAkey \ -days -set_serial -signkey -x509toreq -req -CA -CAkey
-CAcreateserial -CAserial -text -C -md2 -md5 -sha1 \ -CAcreateserial -CAserial -text -C -md2 -md5 -sha1
-mdc2 -clrext -extfile -extensions -engine' -mdc2 -clrext -extfile -extensions -engine'
;; ;;
md5|md4|md2|sha1|sha|mdc2|ripemd160) md5|md4|md2|sha1|sha|mdc2|ripemd160)
@ -231,9 +226,9 @@ _openssl()
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
else else
if [[ "$command" == speed ]]; then if [[ "$command" == speed ]]; then
COMPREPLY=( $( compgen -W 'md2 mdc2 md5 hmac sha1 rmd160 \ COMPREPLY=( $( compgen -W 'md2 mdc2 md5 hmac sha1 rmd160
idea-cbc rc2-cbc rc5-cbc bf-cbc des-cbc des-ede3 rc4 \ idea-cbc rc2-cbc rc5-cbc bf-cbc des-cbc des-ede3 rc4
rsa512 rsa1024 rsa2048 rsa4096 dsa512 dsa1024 dsa2048 idea \ rsa512 rsa1024 rsa2048 rsa4096 dsa512 dsa1024 dsa2048 idea
rc2 des rsa blowfish' -- "$cur" ) ) rc2 des rsa blowfish' -- "$cur" ) )
else else
_filedir _filedir

View File

@ -19,9 +19,9 @@ _p4()
elif [[ $cword -eq 2 ]]; then elif [[ $cword -eq 2 ]]; then
case $prev in case $prev in
help) help)
COMPREPLY=( $( compgen -W "simple commands \ COMPREPLY=( $( compgen -W "simple commands environment
environment filetypes jobview revisions \ filetypes jobview revisions usage views $p4commands" \
usage views $p4commands" -- "$cur" ) ) -- "$cur" ) )
;; ;;
admin) admin)
COMPREPLY=( $( compgen -W "checkpoint stop" -- "$cur" ) ) COMPREPLY=( $( compgen -W "checkpoint stop" -- "$cur" ) )
@ -34,7 +34,7 @@ _p4()
-t) -t)
case ${words[$cword-2]} in case ${words[$cword-2]} in
add|edit|reopen) add|edit|reopen)
COMPREPLY=( $( compgen -W "$p4filetypes" -- "$cur") ) COMPREPLY=( $( compgen -W "$p4filetypes" -- "$cur" ) )
;; ;;
*) *)
;; ;;

View File

@ -55,13 +55,12 @@ _pack200()
if ! $pack ; then if ! $pack ; then
if [[ "$cur" == -* ]] ; then if [[ "$cur" == -* ]] ; then
COMPREPLY=( $( compgen -W '--no-gzip --gzip --strip-debug \ COMPREPLY=( $( compgen -W '--no-gzip --gzip --strip-debug
--no-keep-file-order --segment-limit= --effort= \ --no-keep-file-order --segment-limit= --effort= --deflate-hint=
--deflate-hint= --modification-time= --pass-file= \ --modification-time= --pass-file= --unknown-attribute=
--unknown-attribute= --class-attribute= --field-attribute= \ --class-attribute= --field-attribute= --method-attribute=
--method-attribute= --code-attribute= --config-file= \ --code-attribute= --config-file= --verbose --quiet --log-file=
--verbose --quiet --log-file= --help --version -J \ --help --version -J --repack' -- "$cur" ) )
--repack' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace
else else
_filedir 'pack?(.gz)' _filedir 'pack?(.gz)'

View File

@ -73,8 +73,8 @@ _perl()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-C -s -T -u -U -W -X -h -v -V -c -w -d \ COMPREPLY=( $( compgen -W '-C -s -T -u -U -W -X -h -v -V -c -w -d -D -p
-D -p -n -a -F -l -0 -I -m -M -P -S -x -i -e ' -- "$cur" ) ) -n -a -F -l -0 -I -m -M -P -S -x -i -e' -- "$cur" ) )
else else
_filedir _filedir
fi fi

View File

@ -25,7 +25,7 @@ _pkgtool()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--sets --ignore-tagfiles --tagfile \ COMPREPLY=( $( compgen -W '--sets --ignore-tagfiles --tagfile
--source-mounted --source_dir --target_dir --source_device' \ --source-mounted --source_dir --target_dir --source_device' \
-- "$cur" ) ) -- "$cur" ) )
return 0 return 0

View File

@ -21,7 +21,7 @@ _postfix()
return 0 return 0
fi fi
COMPREPLY=( $( compgen -W 'check start stop abort flush reload status \ COMPREPLY=( $( compgen -W 'check start stop abort flush reload status
set-permissions upgrade-configuration' -- "$cur" ) ) set-permissions upgrade-configuration' -- "$cur" ) )
} && } &&
complete -F _postfix postfix complete -F _postfix postfix

View File

@ -95,7 +95,7 @@ _puppet()
command=apply command=apply
;; ;;
*) *)
COMPREPLY=( $( compgen -W 'agent apply cert describe doc \ COMPREPLY=( $( compgen -W 'agent apply cert describe doc
filebucket kick master queue resource' -- "$cur" ) ) filebucket kick master queue resource' -- "$cur" ) )
return 0 return 0
;; ;;
@ -114,7 +114,7 @@ _puppet()
;; ;;
--serve) --serve)
# From /usr/lib/ruby/1.8/puppet/network/handler/ # From /usr/lib/ruby/1.8/puppet/network/handler/
COMPREPLY=( $( compgen -W 'ca filebucket fileserver master \ COMPREPLY=( $( compgen -W 'ca filebucket fileserver master
report runner status' -- "$cur" ) ) report runner status' -- "$cur" ) )
return 0 return 0
;; ;;
@ -127,10 +127,10 @@ _puppet()
return 0 return 0
;; ;;
*) *)
COMPREPLY=( $( compgen -W '--daemonize --no-daemonize \ COMPREPLY=( $( compgen -W '--daemonize --no-daemonize
--debug --detailed-exitcodes --disable --enable \ --debug --detailed-exitcodes --disable --enable --help
--help --fqdn --logdest --onetime --serve --test \ --fqdn --logdest --onetime --serve --test --noop
--noop --digest --fingerprint --version --verbose \ --digest --fingerprint --version --verbose
--waitforcert --no-client' -- "$cur" ) ) --waitforcert --no-client' -- "$cur" ) )
return 0 return 0
esac esac
@ -143,8 +143,8 @@ _puppet()
;; ;;
*) *)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --version --debug \ COMPREPLY=( $( compgen -W '--help --version --debug
--verbose --execute --detailed-exitcodes \ --verbose --execute --detailed-exitcodes
--logdest' -- "$cur" ) ) --logdest' -- "$cur" ) )
else else
_filedir _filedir
@ -182,8 +182,8 @@ _puppet()
return 0 return 0
;; ;;
*) *)
COMPREPLY=( $( compgen -W '--clean --generate \ COMPREPLY=( $( compgen -W '--clean --generate
--help --list --print --fingerprint --revoke \ --help --list --print --fingerprint --revoke
--sign --version --verify' -- "$cur" ) ) --sign --version --verify' -- "$cur" ) )
return 0 return 0
esac esac
@ -191,7 +191,7 @@ _puppet()
;; ;;
describe) describe)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --short --providers --list \ COMPREPLY=( $( compgen -W '--help --short --providers --list
--meta' -- "$cur" ) ) --meta' -- "$cur" ) )
else else
_puppet_types _puppet_types
@ -214,7 +214,7 @@ _puppet()
;; ;;
*) *)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--all --help --outputdir \ COMPREPLY=( $( compgen -W '--all --help --outputdir
--mode --reference --charset --list' -- "$cur" ) ) --mode --reference --charset --list' -- "$cur" ) )
else else
_filedir _filedir
@ -234,7 +234,7 @@ _puppet()
;; ;;
*) *)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --version --debug \ COMPREPLY=( $( compgen -W '--help --version --debug
--verbose --local --remote --server --bucket' \ --verbose --local --remote --server --bucket' \
-- "$cur" ) ) -- "$cur" ) )
else else
@ -259,8 +259,8 @@ _puppet()
;; ;;
*) *)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--all --class --debug \ COMPREPLY=( $( compgen -W '--all --class --debug
--foreground --help --host --no-fqdn \ --foreground --help --host --no-fqdn
--ignoreschedules --tag --test --ping' -- "$cur" ) ) --ignoreschedules --tag --test --ping' -- "$cur" ) )
else else
_known_hosts_real "$cur" _known_hosts_real "$cur"
@ -275,7 +275,7 @@ _puppet()
return 0 return 0
;; ;;
*) *)
COMPREPLY=( $( compgen -W '--daemonize --no-daemonize \ COMPREPLY=( $( compgen -W '--daemonize --no-daemonize
--debug --help --logdest --verbose --version' \ --debug --help --logdest --verbose --version' \
-- "$cur" ) ) -- "$cur" ) )
return 0 return 0
@ -289,8 +289,8 @@ _puppet()
;; ;;
*) *)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --version --debug \ COMPREPLY=( $( compgen -W '--help --version --debug
--verbose --execute --detailed-exitcodes \ --verbose --execute --detailed-exitcodes
--logdest' -- "$cur" ) ) --logdest' -- "$cur" ) )
else else
_filedir _filedir

View File

@ -20,9 +20,9 @@ _qemu()
return 0 return 0
;; ;;
-k) -k)
COMPREPLY=( $( compgen -W 'ar de-ch es fo fr-ca hu ja \ COMPREPLY=( $( compgen -W 'ar de-ch es fo fr-ca hu ja mk no pt-br
mk no pt-br sv da en-gb et fr fr-ch is lt nl pl\ sv da en-gb et fr fr-ch is lt nl pl ru th de en-us fi fr-be hr
ru th de en-us fi fr-be hr it lv nl-be pt sl tr' -- "$cur" ) ) it lv nl-be pt sl tr' -- "$cur" ) )
return 0 return 0
;; ;;
-soundhw) -soundhw)
@ -41,8 +41,8 @@ _qemu()
return 0 return 0
;; ;;
-usbdevice) -usbdevice)
COMPREPLY=( $( compgen -W 'mouse tablet disk: host: \ COMPREPLY=( $( compgen -W 'mouse tablet disk: host: serial: braille
serial: braille net' -- "$cur" ) ) net' -- "$cur" ) )
return 0 return 0
;; ;;
-net) -net)
@ -51,9 +51,8 @@ _qemu()
return 0 return 0
;; ;;
-serial|-parallel|-monitor) -serial|-parallel|-monitor)
COMPREPLY=( $( compgen -W 'vc pty none null /dev/ \ COMPREPLY=( $( compgen -W 'vc pty none null /dev/ file: stdio pipe:
file: stdio pipe: COM udp: tcp: telnet: unix: \ COM udp: tcp: telnet: unix: mon: braille' -- "$cur" ) )
mon: braille' -- "$cur" ) )
return 0 return 0
;; ;;
-redir) -redir)
@ -70,8 +69,8 @@ _qemu()
return 0 return 0
;; ;;
-drive) -drive)
COMPREPLY=( $( compgen -S"=" -W 'file if bus unit index media \ COMPREPLY=( $( compgen -S"=" -W 'file if bus unit index media cyls
cyls snapshot cache format serial addr' -- "$cur" ) ) snapshot cache format serial addr' -- "$cur" ) )
return 0 return 0
;; ;;
-ballon) -ballon)
@ -88,7 +87,7 @@ _qemu()
return 0 return 0
;; ;;
-watchdog-action) -watchdog-action)
COMPREPLY=( $( compgen -W 'reset shutdown poweroff pause debug \ COMPREPLY=( $( compgen -W 'reset shutdown poweroff pause debug
none' -- "$cur" ) ) none' -- "$cur" ) )
return 0 return 0
;; ;;

View File

@ -8,8 +8,8 @@ _qrunner()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--runner --once \ COMPREPLY=( $( compgen -W '--runner --once --list --verbose --subproc
--list --verbose --subproc --help' -- "$cur" ) ) --help' -- "$cur" ) )
fi fi
} && } &&

View File

@ -8,27 +8,25 @@ _querybts()
case $prev in case $prev in
-B|--bts) -B|--bts)
COMPREPLY=( $( compgen -W "debian guug kde mandrake help" \ COMPREPLY=( $( compgen -W "debian guug kde mandrake help" \
-- "$cur" )) -- "$cur" ) )
return 0 return 0
;; ;;
-u|--ui|--interface) -u|--ui|--interface)
COMPREPLY=($( compgen -W "newt text gnome" -- "$cur" )) COMPREPLY=( $( compgen -W "newt text gnome" -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
$split && return 0 $split && return 0
COMPREPLY=($( compgen -W '-h --help -v --version -A --archive \ COMPREPLY=( $( compgen -W '-h --help -v --version -A --archive -B --bts -l
-B --bts -l --ldap --no-ldap --proxy --http_proxy \ --ldap --no-ldap --proxy --http_proxy -s --source -w --web -u --ui
-s --source -w --web -u --ui --interface \ --interface \
wnpp boot-floppies kernel bugs.debian.org \ wnpp boot-floppies kernel bugs.debian.org cdimage.debian.org general
cdimage.debian.org general installation-reports \ installation-reports listarchives lists.debian.org mirrors
listarchives lists.debian.org mirrors nm.debian.org \ nm.debian.org press project qa.debian.org release-notes
press project qa.debian.org release-notes \ security.debian.org tech-ctte upgrade-reports www.debian.org' \
security.debian.org tech-ctte upgrade-reports \ -- "$cur" ) $( apt-cache pkgnames -- "$cur" 2> /dev/null ) )
www.debian.org' -- "$cur" ) \
$( apt-cache pkgnames -- "$cur" 2> /dev/null) )
} && } &&
complete -F _querybts querybts complete -F _querybts querybts

View File

@ -32,7 +32,7 @@ _rdesktop()
*:*) *:*)
;; ;;
*) *)
COMPREPLY=( $( compgen -W 'comport: disk: lptport: \ COMPREPLY=( $( compgen -W 'comport: disk: lptport:
printer: sound: lspci scard' -- "$cur" ) ) printer: sound: lspci scard' -- "$cur" ) )
[[ $COMPREPLY == *: ]] && compopt -o nospace [[ $COMPREPLY == *: ]] && compopt -o nospace
;; ;;

View File

@ -15,7 +15,7 @@ _remove_members()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--file --all --fromall --nouserack \ COMPREPLY=( $( compgen -W '--file --all --fromall --nouserack
--noadminack --help' -- "$cur" ) ) --noadminack --help' -- "$cur" ) )
else else
_xfunc list_lists _mailman_lists _xfunc list_lists _mailman_lists

View File

@ -12,11 +12,11 @@ _reportbug()
;; ;;
-B|--bts) -B|--bts)
COMPREPLY=( $( compgen -W "debian guug kde mandrake help" -- \ COMPREPLY=( $( compgen -W "debian guug kde mandrake help" -- \
"$cur" )) "$cur" ) )
return 0 return 0
;; ;;
-e|--editor|--mua) -e|--editor|--mua)
words=(words[0] "$cur") words=( words[0] "$cur" )
cword=1 cword=1
_command _command
return 0 return 0
@ -26,8 +26,8 @@ _reportbug()
return 0 return 0
;; ;;
-S|--severity) -S|--severity)
COMPREPLY=( $( compgen -W "grave serious important normal \ COMPREPLY=( $( compgen -W "grave serious important normal minor
minor wishlist" -- "$cur" ) ) wishlist" -- "$cur" ) )
return 0 return 0
;; ;;
-u|--ui|--interface) -u|--ui|--interface)
@ -39,12 +39,11 @@ _reportbug()
return 0 return 0
;; ;;
-T|--tag) -T|--tag)
COMPREPLY=( $( compgen -W "none \ COMPREPLY=( $( compgen -W "none woody potato sarge sarge-ignore
woody potato sarge sarge-ignore etch etch-ignore \ etch etch-ignore lenny lenny-ignore sid experimental confirmed
lenny lenny-ignore sid experimental confirmed \ d-i fixed fixed-in-experimental fixed-upstream help l10n
d-i fixed fixed-in-experimental fixed-upstream \ moreinfo patch pending security unreproducible upstream wontfix
help l10n moreinfo patch pending security \ ipv6 lfs" -- "$cur" ) )
unreproducible upstream wontfix ipv6 lfs" -- "$cur" ))
return 0 return 0
;; ;;
--from-buildd) --from-buildd)
@ -56,28 +55,25 @@ _reportbug()
;; ;;
esac esac
COMPREPLY=($( compgen -W '--help --version --attach \ COMPREPLY=($( compgen -W '--help --version --attach --no-query-bts
--no-query-bts --query-bts --bts --body --body-file --bodyfile \ --query-bts --bts --body --body-file --bodyfile --no-config-files
--no-config-files --class --configure --check-available --debug \ --class --configure --check-available --debug --no-check-available
--no-check-available --debconf --test --draftpath --editor --email \ --debconf --test --draftpath --editor --email --exit-prompt --filename
--exit-prompt --filename --from-buildd --gnupg --gpg --path --gnus \ --from-buildd --gnupg --gpg --path --gnus --header --include
--header --include --no-check-installed --check-installed \ --no-check-installed --check-installed --justification --kudos --keyid
--justification --kudos --keyid --license --list-cc \ --license --list-cc --maintonly --mirror --mode --mua --mta --mutt --mh
--maintonly --mirror --mode --mua --mta --mutt --mh --nmh \ --nmh --bugnumber --no-bug-script --no-cc-menu --output --offline
--bugnumber --no-bug-script --no-cc-menu --output --offline \ --print --paranoid --no-paranoid --pgp --proxy --http_proxy
--print --paranoid --no-paranoid --pgp --proxy --http_proxy \ --pseudo-header --quiet --query-only --query-source --no-query-source
--pseudo-header --quiet --query-only --query-source --no-query-source \ --realname --report-quiet --reply-to --replyto --subject --severity
--realname --report-quiet --reply-to --replyto --subject --severity \ --smtphost --timeout --tls --smtpuser --smtppasswd --src --source
--smtphost --timeout --tls --smtpuser --smtppasswd --src --source --type \ --type --tag --template --verify --no-verify --no-cc --package-version
--tag --template --verify --no-verify --no-cc --package-version \ --no-compress --ui --interface
--no-compress --ui --interface \ wnpp boot-floppies kernel bugs.debian.org cdimage.debian.org general
wnpp boot-floppies kernel bugs.debian.org \ installation-reports listarchives lists.debian.org mirrors
cdimage.debian.org general installation-reports \ nm.debian.org press project qa.debian.org release-notes
listarchives lists.debian.org mirrors nm.debian.org \ security.debian.org tech-ctte upgrade-reports www.debian.org' \
press project qa.debian.org release-notes \ -- "$cur" ) $( apt-cache pkgnames -- "$cur" 2> /dev/null ) )
security.debian.org tech-ctte upgrade-reports \
www.debian.org' -- "$cur" ) \
$( apt-cache pkgnames -- "$cur" 2> /dev/null) )
_filedir _filedir
return 0 return 0
} && } &&

View File

@ -52,9 +52,9 @@ _rpm()
# first parameter on line # first parameter on line
case $cur in case $cur in
--*) --*)
COMPREPLY=( $( compgen -W '--help --version --initdb \ COMPREPLY=( $( compgen -W '--help --version --initdb
--checksig --addsign --delsign --rebuilddb --showrc \ --checksig --addsign --delsign --rebuilddb --showrc
--setperms --setugids --eval --install --upgrade --query \ --setperms --setugids --eval --install --upgrade --query
--freshen --erase --verify --querytags --import' \ --freshen --erase --verify --querytags --import' \
-- "$cur" ) ) -- "$cur" ) )
;; ;;
@ -122,45 +122,43 @@ _rpm()
$split && return 0 $split && return 0
# options common to all modes # options common to all modes
local opts="--define= --eval= --macros= --nodigest --nosignature \ local opts="--define= --eval= --macros= --nodigest --nosignature --rcfile=
--rcfile= --quiet --pipe --verbose" --quiet --pipe --verbose"
case ${words[1]} in case ${words[1]} in
-[iFU]*|--install|--freshen|--upgrade) -[iFU]*|--install|--freshen|--upgrade)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$opts --percent --force \ COMPREPLY=( $( compgen -W "$opts --percent --force --test
--test --replacepkgs --replacefiles --root \ --replacepkgs --replacefiles --root --excludedocs --includedocs
--excludedocs --includedocs --noscripts --ignorearch \ --noscripts --ignorearch --dbpath --prefix= --ignoreos --nodeps
--dbpath --prefix= --ignoreos --nodeps --allfiles \ --allfiles --ftpproxy --ftpport --justdb --httpproxy --httpport
--ftpproxy --ftpport --justdb --httpproxy --httpport \ --noorder --relocate= --badreloc --notriggers --excludepath=
--noorder --relocate= --badreloc --notriggers \ --ignoresize --oldpackage --queryformat --repackage
--excludepath= --ignoresize --oldpackage \ --nosuggests" -- "$cur" ) )
--queryformat --repackage --nosuggests" -- "$cur" ) )
else else
_filedir '[rs]pm' _filedir '[rs]pm'
fi fi
;; ;;
-e|--erase) -e|--erase)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$opts --allmatches \ COMPREPLY=( $( compgen -W "$opts --allmatches --noscripts
--noscripts --notriggers --nodeps --test --repackage" \ --notriggers --nodeps --test --repackage" -- "$cur" ) )
-- "$cur" ) )
else else
_rpm_installed_packages $1 _rpm_installed_packages $1
fi fi
;; ;;
-q*|--query) -q*|--query)
# options common to all query types # options common to all query types
opts+=" --changelog --configfiles --conflicts --docfiles opts+=" --changelog --configfiles --conflicts --docfiles --dump
--dump --enhances --filesbypkg --filecaps --fileclass --enhances --filesbypkg --filecaps --fileclass --filecolor
--filecolor --fileprovide --filerequire --filesbypkg --info --fileprovide --filerequire --filesbypkg --info --list
--list --obsoletes --pipe --provides --queryformat= --obsoletes --pipe --provides --queryformat= --requires
--requires --scripts --suggests --triggers --xml" --scripts --suggests --triggers --xml"
if [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then if [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then
# -qf completion # -qf completion
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$opts --dbpath --fscontext \ COMPREPLY=( $( compgen -W "$opts --dbpath --fscontext
--last --root --state" -- "$cur" ) ) --last --root --state" -- "$cur" ) )
else else
_filedir _filedir
@ -171,7 +169,7 @@ _rpm()
elif [[ ${words[@]} == *\ -@(*([^ -])p|-package )* ]]; then elif [[ ${words[@]} == *\ -@(*([^ -])p|-package )* ]]; then
# -qp; uninstalled package completion # -qp; uninstalled package completion
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$opts --ftpport --ftpproxy \ COMPREPLY=( $( compgen -W "$opts --ftpport --ftpproxy
--httpport --httpproxy --nomanifest" -- "$cur" ) ) --httpport --httpproxy --nomanifest" -- "$cur" ) )
else else
_filedir '[rs]pm' _filedir '[rs]pm'
@ -199,9 +197,9 @@ _rpm()
;; ;;
-[Vy]*|--verify) -[Vy]*|--verify)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$opts --root= --dbpath --nodeps \ COMPREPLY=( $( compgen -W "$opts --root= --dbpath --nodeps
--nogroup --nolinkto --nomode --nomtime --nordev --nouser \ --nogroup --nolinkto --nomode --nomtime --nordev --nouser
--nofiles --noscripts --nomd5 --querytags --specfile \ --nofiles --noscripts --nomd5 --querytags --specfile
--whatrequires --whatprovides" -- "$cur" ) ) --whatrequires --whatprovides" -- "$cur" ) )
# check whether we're doing file completion # check whether we're doing file completion
elif [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then elif [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then

View File

@ -13,8 +13,8 @@ _rpmcheck()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-explain -failures -successes \ COMPREPLY=( $( compgen -W '-explain -failures -successes -dump
-dump -dump-all -base -help -compressed-input' -- "$cur" ) ) -dump-all -base -help -compressed-input' -- "$cur" ) )
else else
_filedir _filedir
fi fi

View File

@ -6,7 +6,7 @@ _rrdtool ()
_init_completion || return _init_completion || return
if [[ ${#words[@]} -eq 2 ]]; then if [[ ${#words[@]} -eq 2 ]]; then
COMPREPLY=( $( compgen -W 'create update updatev graph dump restore \ COMPREPLY=( $( compgen -W 'create update updatev graph dump restore
last lastupdate first info fetch tune resize xport' -- "$cur" ) ) last lastupdate first info fetch tune resize xport' -- "$cur" ) )
else else
_filedir rrd _filedir rrd

View File

@ -36,33 +36,32 @@ _rsync()
case $cur in case $cur in
-*) -*)
COMPREPLY=( $( compgen -W '--verbose --quiet --no-motd --checksum \ COMPREPLY=( $( compgen -W '--verbose --quiet --no-motd --checksum
--archive --recursive --relative --no-implied-dirs \ --archive --recursive --relative --no-implied-dirs
--backup --backup-dir= --suffix= --update --inplace --append \ --backup --backup-dir= --suffix= --update --inplace --append
--append-verify --dirs --old-dirs --links --copy-links \ --append-verify --dirs --old-dirs --links --copy-links
--copy-unsafe-links --safe-links --copy-dirlinks \ --copy-unsafe-links --safe-links --copy-dirlinks
--keep-dirlinks --hard-links --perms --executability --chmod= \ --keep-dirlinks --hard-links --perms --executability --chmod=
--acls --xattrs --owner --group --devices --copy-devices \ --acls --xattrs --owner --group --devices --copy-devices
--specials --times --omit-dir-times --super --fake-super \ --specials --times --omit-dir-times --super --fake-super
--sparse --dry-run --whole-file --no-whole-file \ --sparse --dry-run --whole-file --no-whole-file
--one-file-system --block-size= --rsh= --rsync-path= \ --one-file-system --block-size= --rsh= --rsync-path=
--existing --ignore-existing --remove-source-files --delete \ --existing --ignore-existing --remove-source-files --delete
--delete-before --delete-during --delete-delay --delete-after \ --delete-before --delete-during --delete-delay --delete-after
--delete-excluded --ignore-errors --force --max-delete= \ --delete-excluded --ignore-errors --force --max-delete=
--max-size= --min-size= --partial --partial-dir= \ --max-size= --min-size= --partial --partial-dir=
--delay-updates --prune-empty-dirs --numeric-ids --timeout= \ --delay-updates --prune-empty-dirs --numeric-ids --timeout=
--contimeout= --ignore-times --size-only --modify-window= \ --contimeout= --ignore-times --size-only --modify-window=
--temp-dir= --fuzzy --compare-dest= --copy-dest= --link-dest= \ --temp-dir= --fuzzy --compare-dest= --copy-dest= --link-dest=
--compress --compress-level= --skip-compress= --cvs-exclude \ --compress --compress-level= --skip-compress= --cvs-exclude
--filter= --exclude= --exclude-from= --include= \ --filter= --exclude= --exclude-from= --include= --include-from=
--include-from= --files-from= --from0 --protect-args \ --files-from= --from0 --protect-args --address= --port=
--address= --port= --sockopts= --blocking-io --no-blocking-io \ --sockopts= --blocking-io --no-blocking-io --stats
--stats --8-bit-output --human-readable --progress \ --8-bit-output --human-readable --progress --itemize-changes
--itemize-changes --out-format= --log-file= \ --out-format= --log-file= --log-file-format= --password-file=
--log-file-format= --password-file= --list-only --bwlimit= \ --list-only --bwlimit= --write-batch= --only-write-batch=
--write-batch= --only-write-batch= --read-batch= --protocol= \ --read-batch= --protocol= --iconv= --ipv4 --ipv6 --version
--iconv= --ipv4 --ipv6 --version --help --daemon --config= \ --help --daemon --config= --no-detach' -- "$cur" ) )
--no-detach' -- "$cur" ) )
[[ $COMPREPLY == *= ]] || compopt +o nospace [[ $COMPREPLY == *= ]] || compopt +o nospace
;; ;;
*:*) *:*)

View File

@ -24,7 +24,7 @@ _sbopkg()
return return
;; ;;
-V) -V)
COMPREPLY=( $( compgen -W "? \ COMPREPLY=( $( compgen -W "?
$( sbopkg -V ? 2>&1 | cut -s -f1 )" -- "$cur" ) ) $( sbopkg -V ? 2>&1 | cut -s -f1 )" -- "$cur" ) )
return return
;; ;;

View File

@ -84,8 +84,8 @@ _screen()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-a -A -c -d -D -e -f -fn -fa -h -i -ln \ COMPREPLY=( $( compgen -W '-a -A -c -d -D -e -f -fn -fa -h -i -ln -list
-list -L -m -O -p -q -r -R -s -S -t -T -U -v -wipe -x -X --help \ -L -m -O -p -q -r -R -s -S -t -T -U -v -wipe -x -X --help
--version' -- "$cur" ) ) --version' -- "$cur" ) )
fi fi
} && } &&

View File

@ -29,8 +29,8 @@ _smartctl_device()
} }
_smartctl_tolerance() _smartctl_tolerance()
{ {
COMPREPLY=( $( compgen -W 'normal conservative permissive \ COMPREPLY=( $( compgen -W 'normal conservative permissive verypermissive' \
verypermissive' -- "$cur" ) ) -- "$cur" ) )
} }
_smartctl_badsum() _smartctl_badsum()
{ {
@ -56,10 +56,10 @@ _smartctl_log()
} }
_smartctl_vendorattribute() _smartctl_vendorattribute()
{ {
COMPREPLY=( $( compgen -W 'help 9,minutes 9,seconds 9,halfminutes \ COMPREPLY=( $( compgen -W 'help 9,minutes 9,seconds 9,halfminutes 9,temp
9,temp 192,emergencyretractcyclect 193,loadunload \ 192,emergencyretractcyclect 193,loadunload 194,10xCelsius 194,unknown
194,10xCelsius 194,unknown 198,offlinescanuncsectorct \ 198,offlinescanuncsectorct 200,writeerrorcount 201,detectedtacount
200,writeerrorcount 201,detectedtacount 220,temp' -- "$cur" ) ) 220,temp' -- "$cur" ) )
} }
_smartctl_firmwarebug() _smartctl_firmwarebug()
{ {

View File

@ -17,7 +17,7 @@ _samba_hosts()
if [[ -n ${COMP_SAMBA_SCAN:-} ]]; then if [[ -n ${COMP_SAMBA_SCAN:-} ]]; then
COMPREPLY=( $( compgen -W "$( smbtree -N -S | \ COMPREPLY=( $( compgen -W "$( smbtree -N -S | \
sed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p' \ sed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p' \
)" -- $cur ) ) )" -- "$cur" ) )
fi fi
} }

View File

@ -2,16 +2,15 @@
_ssh_ciphers() _ssh_ciphers()
{ {
COMPREPLY+=( $( compgen -W '3des-cbc aes128-cbc \ COMPREPLY+=( $( compgen -W '3des-cbc aes128-cbc aes192-cbc aes256-cbc
aes192-cbc aes256-cbc aes128-ctr aes192-ctr aes256-ctr arcfour128 \ aes128-ctr aes192-ctr aes256-ctr arcfour128 arcfour256 arcfour
arcfour256 arcfour blowfish-cbc cast128-cbc' -- "$cur" ) ) blowfish-cbc cast128-cbc' -- "$cur" ) )
} }
_ssh_macs() _ssh_macs()
{ {
COMPREPLY+=( $( compgen -W 'hmac-md5 hmac-sha1 \ COMPREPLY+=( $( compgen -W 'hmac-md5 hmac-sha1 umac-64@openssh.com
umac-64@openssh.com hmac-ripemd160 hmac-sha1-96 hmac-md5-96' \ hmac-ripemd160 hmac-sha1-96 hmac-md5-96' -- "$cur" ) )
-- "$cur" ) )
} }
_ssh_options() _ssh_options()
@ -60,7 +59,7 @@ _ssh_suboption()
PubkeyAuthentication|RhostsRSAAuthentication|RSAAuthentication|\ PubkeyAuthentication|RhostsRSAAuthentication|RSAAuthentication|\
StrictHostKeyChecking|TCPKeepAlive|UsePrivilegedPort|\ StrictHostKeyChecking|TCPKeepAlive|UsePrivilegedPort|\
VerifyHostKeyDNS|VisualHostKey) VerifyHostKeyDNS|VisualHostKey)
COMPREPLY=( $( compgen -W 'yes no' -- "$cur") ) COMPREPLY=( $( compgen -W 'yes no' -- "$cur" ) )
;; ;;
AddressFamily) AddressFamily)
COMPREPLY=( $( compgen -W 'any inet inet6' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'any inet inet6' -- "$cur" ) )
@ -86,8 +85,8 @@ _ssh_suboption()
-- "$cur" ) ) -- "$cur" ) )
;; ;;
PreferredAuthentications) PreferredAuthentications)
COMPREPLY=( $( compgen -W 'gssapi-with-mic host-based \ COMPREPLY=( $( compgen -W 'gssapi-with-mic host-based publickey
publickey keyboard-interactive password' -- "$cur" ) ) keyboard-interactive password' -- "$cur" ) )
;; ;;
MACs) MACs)
_ssh_macs _ssh_macs

View File

@ -58,7 +58,7 @@ _strace()
COMPREPLY=( $( compgen -W '${!syscalls[@]} file COMPREPLY=( $( compgen -W '${!syscalls[@]} file
process network signal ipc desc all none' \ process network signal ipc desc all none' \
-- "$cur") ) -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -89,9 +89,8 @@ _strace()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-c -d -f -ff -F --help -i -q \ COMPREPLY=( $( compgen -W '-c -d -f -ff -F --help -i -q -r -t -tt
-r -t -tt -ttt -T -v -V -x -xx -a -e -o -O -p \ -ttt -T -v -V -x -xx -a -e -o -O -p -s -S -u -E' -- "$cur" ) )
-s -S -u -E' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -c -- "$cur" ) ) COMPREPLY=( $( compgen -c -- "$cur" ) )
fi fi

View File

@ -7,13 +7,12 @@ _svk()
local commands options command local commands options command
commands='add admin annotate ann blame praise cat checkout co cleanup \ commands='add admin annotate ann blame praise cat checkout co cleanup
cmerge cm commit ci copy cp delete del remove rm depotmap \ cmerge cm commit ci copy cp delete del remove rm depotmap depot
depot describe desc diff di help h ? import info list ls log \ describe desc diff di help h ? import info list ls log merge mirror mi
merge mirror mi mkdir move mv ren rename patch propdel pd pdel \ mkdir move mv ren rename patch propdel pd pdel propedit pe pedit
propedit pe pedit propget pg pget proplist pl plist propset ps \ propget pg pget proplist pl plist propset ps pset pull push resolved
pset pull push resolved revert smerge sm status st stat switch \ revert smerge sm status st stat switch sw sync sy update up verify'
sw sync sy update up verify'
if [[ $cword -eq 1 ]] ; then if [[ $cword -eq 1 ]] ; then
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
@ -49,99 +48,99 @@ _svk()
options='-r --revision' options='-r --revision'
;; ;;
checkout|co) checkout|co)
options='-r --revision -q --quiet -N --non-recursive -l \ options='-r --revision -q --quiet -N --non-recursive -l
--list -d --detach --export --relocate --purge' --list -d --detach --export --relocate --purge'
;; ;;
cleanup) cleanup)
options='-a --all' options='-a --all'
;; ;;
cmerge|cm) cmerge|cm)
options='-c --change -l --log -r --revision -a --auto \ options='-c --change -l --log -r --revision -a --auto
--verbatim --no-ticket -m --message -F --file \ --verbatim --no-ticket -m --message -F --file
--template --encoding -P --patch -S --sign -C \ --template --encoding -P --patch -S --sign -C
--check-only --direct' --check-only --direct'
;; ;;
commit|ci) commit|ci)
options='--import -m --message -F --file --encoding \ options='--import -m --message -F --file --encoding
--template -P --patch -S --sign -C --check-only -N \ --template -P --patch -S --sign -C --check-only -N
--non-recursive --direct' --non-recursive --direct'
;; ;;
copy|cp) copy|cp)
options='-r --revision -p --parent -q --quiet -m --message \ options='-r --revision -p --parent -q --quiet -m --message
-F --file --template --encoding -P --patch -S --sign \ -F --file --template --encoding -P --patch -S --sign -C
-C --check-only --direct' --check-only --direct'
;; ;;
delete|del|remove|rm) delete|del|remove|rm)
options='-k --keep-local -m --message -F --file --encoding \ options='-k --keep-local -m --message -F --file --encoding
--template -P --patch -S --sign -C --check-only \ --template -P --patch -S --sign -C --check-only
--direct' --direct'
;; ;;
depotmap|depot) depotmap|depot)
options='-i --init -l --list -d --detach --relocate' options='-i --init -l --list -d --detach --relocate'
;; ;;
diff|di) diff|di)
options='-r --revision -s --summarize -b --verbose -N \ options='-r --revision -s --summarize -b --verbose -N
--non-recursive' --non-recursive'
;; ;;
import) import)
options='-f --from-checkout -t --to-checkout -m --message \ options='-f --from-checkout -t --to-checkout -m --message
-F --file --template --encoding -P --patch -S --sign \ -F --file --template --encoding -P --patch -S --sign -C
-C --check-only -N --non-recursive --direct' --check-only -N --non-recursive --direct'
;; ;;
list|ls) list|ls)
options='-r --revision -v --verbose -R --recursive -d \ options='-r --revision -v --verbose -R --recursive -d
--depth -f --full-path' --depth -f --full-path'
;; ;;
log) log)
options='-r --revision -l --limit -q --quiet -x --cross \ options='-r --revision -l --limit -q --quiet -x --cross -v
-v --verbose' --verbose'
;; ;;
merge) merge)
options='-r --revision -c --change -I --incremental -a \ options='-r --revision -c --change -I --incremental -a
--auto -l --log -s --sync -t --to -f --from \ --auto -l --log -s --sync -t --to -f --from --verbatim
--verbatim --no-ticket --track-rename -m --message \ --no-ticket --track-rename -m --message -F --file
-F --file --template --encoding -P --patch -S --sign \ --template --encoding -P --patch -S --sign -C
-C --check-only --direct' --check-only --direct'
;; ;;
mirror|mi) mirror|mi)
options='-l --list -d --detach --relocate --recover \ options='-l --list -d --detach --relocate --recover
--unlock --upgrade' --unlock --upgrade'
;; ;;
mkdir) mkdir)
options='-p --parent -m --message -F --file --template \ options='-p --parent -m --message -F --file --template
--encoding -P --patch -S --sign -C --check-only \ --encoding -P --patch -S --sign -C --check-only
--direct' --direct'
;; ;;
move|mv|rename|ren) move|mv|rename|ren)
options='-r --revision -p --parent -q --quiet -m \ options='-r --revision -p --parent -q --quiet -m --message
--message -F --file --encoding --template -P --patch \ -F --file --encoding --template -P --patch -S --sign -C
-S --sign -C --check-only --direct' --check-only --direct'
;; ;;
patch) patch)
options='--depot' options='--depot'
;; ;;
propdel|propset|pdel|pset|pd|ps) propdel|propset|pdel|pset|pd|ps)
options='-R --recursive -r --revision --revprop -m \ options='-R --recursive -r --revision --revprop -m
--message -F --file --template --encoding -P --patch \ --message -F --file --template --encoding -P --patch -S
-S --sign -C --check-only -q --quiet --direct' --sign -C --check-only -q --quiet --direct'
;; ;;
propedit|pedit|pe) propedit|pedit|pe)
options='-R --recursive -r --revision --revprop -m \ options='-R --recursive -r --revision --revprop -m
--message -F --file --template --encoding -P --patch \ --message -F --file --template --encoding -P --patch
-S --sign -C --check-only --direct' -S --sign -C --check-only --direct'
;; ;;
propget|pget|pg) propget|pget|pg)
options='-R --recursive -r --revision --revprop --strict' options='-R --recursive -r --revision --revprop --strict'
;; ;;
proplist|plist|pl) proplist|plist|pl)
options='-R --recursive -v --verbose \ options='-R --recursive -v --verbose -r --revision
-r --revision --revprop' --revprop'
;; ;;
pull) pull)
options='-a --all -l --lump' options='-a --all -l --lump'
;; ;;
push) push)
options='-f --from -l --lump -C --check -P --patch -S \ options='-f --from -l --lump -C --check -P --patch -S
--sign --verbatim' --sign --verbatim'
;; ;;
resolved) resolved)
@ -151,14 +150,14 @@ _svk()
options='-R --recursive -q --quiet' options='-R --recursive -q --quiet'
;; ;;
smerge|sm) smerge|sm)
options='-I --incremental -l --log -B --baseless -b \ options='-I --incremental -l --log -B --baseless -b --base
--base -s --sync -t --to -f --from --verbatim \ -s --sync -t --to -f --from --verbatim --no-ticket
--no-ticket --track-rename --host --remoterev -m \ --track-rename --host --remoterev -m --message -F
--message -F --file --template --encoding -P --patch \ --file --template --encoding -P --patch -S --sign -C
-S --sign -C --check-only --direct' --check-only --direct'
;; ;;
status|stat|st) status|stat|st)
options='-q --quiet --no-ignore -N --non-recursive -v \ options='-q --quiet --no-ignore -N --non-recursive -v
--verbose' --verbose'
;; ;;
switch|sw) switch|sw)
@ -168,7 +167,7 @@ _svk()
options='-a --all -s --skipto -t --torev' options='-a --all -s --skipto -t --torev'
;; ;;
update|up) update|up)
options='-r --revision -N --non-recursive -C --check-only \ options='-r --revision -N --non-recursive -C --check-only
-s --sync -m --merge -q --quiet' -s --sync -m --merge -q --quiet'
;; ;;
esac esac
@ -178,17 +177,17 @@ _svk()
else else
case $command in case $command in
help|h|\?) help|h|\?)
COMPREPLY=( $( compgen -W "$commands \ COMPREPLY=( $( compgen -W "$commands environment commands
environment commands intro" -- "$cur" ) ) intro" -- "$cur" ) )
;; ;;
admin) admin)
COMPREPLY=( $( compgen -W 'help deltify dump hotcopy \ COMPREPLY=( $( compgen -W 'help deltify dump hotcopy
list-dblogs list-unused-dblogs load lstxns recover \ list-dblogs list-unused-dblogs load lstxns recover
rmtxns setlog verify rmcache' -- "$cur" ) ) rmtxns setlog verify rmcache' -- "$cur" ) )
;; ;;
patch) patch)
COMPREPLY=( $( compgen -W '--ls --list --cat --view \ COMPREPLY=( $( compgen -W '--ls --list --cat --view
--regen --regenerate --up --update --apply --rm \ --regen --regenerate --up --update --apply --rm
--delete' -- "$cur" ) ) --delete' -- "$cur" ) )
;; ;;
sync) sync)

View File

@ -7,7 +7,7 @@ _sync_members()
case $prev in case $prev in
-w|-g|-d|--welcome-msg|--goodbye-msg|--digest) -w|-g|-d|--welcome-msg|--goodbye-msg|--digest)
COMPREPLY=( $( compgen -W 'y n' -- "$cur") ) COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
return 0 return 0
;; ;;
-d|--file) -d|--file)
@ -19,8 +19,8 @@ _sync_members()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--no-change --welcome-msg \ COMPREPLY=( $( compgen -W '--no-change --welcome-msg --goodbye-msg
--goodbye-msg --digest --notifyadmin --file --help' -- "$cur" ) ) --digest --notifyadmin --file --help' -- "$cur" ) )
else else
_xfunc list_lists _mailman_lists _xfunc list_lists _mailman_lists
fi fi

View File

@ -105,11 +105,11 @@ _umount()
cur="${cur##*,}" cur="${cur##*,}"
split=true split=true
fi fi
COMPREPLY=( $(compgen -W 'adfs affs autofs btrfs cifs coda COMPREPLY=( $( compgen -W 'adfs affs autofs btrfs cifs coda
cramfs debugfs devpts efs ext2 ext3 ext4 fuse hfs hfsplus hpfs cramfs debugfs devpts efs ext2 ext3 ext4 fuse hfs hfsplus hpfs
iso9660 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g proc qnx4 iso9660 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g proc qnx4
ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs udf ufs ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs udf ufs
umsdos usbfs vfat xfs' -- "$cur") ) umsdos usbfs vfat xfs' -- "$cur" ) )
_fstypes _fstypes
$split && COMPREPLY=( ${COMPREPLY[@]/#/$prev,} ) $split && COMPREPLY=( ${COMPREPLY[@]/#/$prev,} )
return return

View File

@ -33,7 +33,7 @@ _unpack200()
if ! $pack ; then if ! $pack ; then
if [[ "$cur" == -* ]] ; then if [[ "$cur" == -* ]] ; then
COMPREPLY=( $( compgen -W '--deflate-hint= --remove-pack-file \ COMPREPLY=( $( compgen -W '--deflate-hint= --remove-pack-file
--verbose --quiet --log-file= --help --version' -- "$cur" ) ) --verbose --quiet --log-file= --help --version' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace
else else

Some files were not shown because too many files have changed in this diff Show More