*: Line continuation, whitespace, and compgen -W ... -- "$cur" quoting cleanups.
parent
e424ed3e52
commit
6185297fc9
|
@ -27,7 +27,7 @@ _mock()
|
|||
return 0
|
||||
;;
|
||||
-r|--root)
|
||||
COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" -- "$cur" ) )
|
||||
COMPREPLY=( ${COMPREPLY[@]/%.cfg/} )
|
||||
return 0
|
||||
;;
|
||||
|
|
|
@ -18,9 +18,9 @@ _svn()
|
|||
|
||||
if [[ $cword -eq 1 ]] ; then
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '--version' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
|
||||
|
@ -196,10 +196,10 @@ _svn()
|
|||
esac
|
||||
options+=" --help --config-dir"
|
||||
|
||||
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||
else
|
||||
if [[ "$command" == @(help|h|\?) ]]; then
|
||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
@ -221,9 +221,9 @@ _svnadmin()
|
|||
|
||||
if [[ $cword -eq 1 ]] ; then
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '--version' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
case $prev in
|
||||
|
@ -232,7 +232,7 @@ _svnadmin()
|
|||
return 0
|
||||
;;
|
||||
--fs-type)
|
||||
COMPREPLY=( $( compgen -W 'fsfs bdb' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'fsfs bdb' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@ -269,10 +269,10 @@ _svnadmin()
|
|||
esac
|
||||
|
||||
options+=" --help"
|
||||
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||
else
|
||||
if [[ "$command" == @(help|h|\?) ]]; then
|
||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
@ -294,9 +294,9 @@ _svnlook()
|
|||
|
||||
if [[ $cword -eq 1 ]] ; then
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '--version' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
local command=${words[1]}
|
||||
|
@ -327,10 +327,10 @@ _svnlook()
|
|||
esac
|
||||
|
||||
options+=" --help"
|
||||
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||
else
|
||||
if [[ "$command" == @(help|h|\?) ]]; then
|
||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
|
|
@ -75,22 +75,22 @@ _yum()
|
|||
|
||||
case $prev in
|
||||
list)
|
||||
COMPREPLY=( $( compgen -W 'all available updates \
|
||||
installed extras obsoletes recent' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'all available updates installed extras
|
||||
obsoletes recent' -- "$cur" ) )
|
||||
;;
|
||||
clean)
|
||||
COMPREPLY=( $( compgen -W 'packages headers metadata \
|
||||
cache dbcache all' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'packages headers metadata cache dbcache
|
||||
all' -- "$cur" ) )
|
||||
;;
|
||||
repolist)
|
||||
COMPREPLY=( $( compgen -W 'all enabled disabled' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'all enabled disabled' -- "$cur" ) )
|
||||
;;
|
||||
localinstall|localupdate)
|
||||
# TODO: should not match *src.rpm
|
||||
_filedir rpm
|
||||
;;
|
||||
-d|-e)
|
||||
COMPREPLY=( $( compgen -W '{0..10}' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '{0..10}' -- "$cur" ) )
|
||||
;;
|
||||
-c)
|
||||
_filedir
|
||||
|
@ -99,20 +99,21 @@ _yum()
|
|||
_filedir -d
|
||||
;;
|
||||
--enablerepo)
|
||||
COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
--disablerepo)
|
||||
COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- "$cur" ) )
|
||||
;;
|
||||
--disableexcludes)
|
||||
COMPREPLY=( $( compgen -W '$( _yum_repolist all ) all main' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
--enableplugin|--disableplugin)
|
||||
COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- $cur ))
|
||||
COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- "$cur" ) )
|
||||
;;
|
||||
--color)
|
||||
COMPREPLY=( $( compgen -W 'always auto never' -- $cur ))
|
||||
COMPREPLY=( $( compgen -W 'always auto never' -- "$cur" ) )
|
||||
;;
|
||||
-R|-x|--exclude)
|
||||
# argument required but no completions available
|
||||
|
@ -123,11 +124,11 @@ _yum()
|
|||
return 0
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W 'install update check-update upgrade \
|
||||
remove erase list info provides whatprovides clean makecache \
|
||||
groupinstall groupupdate grouplist groupremove groupinfo \
|
||||
search shell resolvedep localinstall localupdate deplist \
|
||||
repolist help' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'install update check-update upgrade
|
||||
remove erase list info provides whatprovides clean makecache
|
||||
groupinstall groupupdate grouplist groupremove groupinfo
|
||||
search shell resolvedep localinstall localupdate deplist
|
||||
repolist help' -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ _add_members()
|
|||
return 0
|
||||
;;
|
||||
-w|-a|--welcome-msg|--admin-notify)
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@ -19,9 +19,8 @@ _add_members()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--regular-members-file \
|
||||
--digest-members-file --welcome-msg \
|
||||
--admin-notify --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--regular-members-file --digest-members-file
|
||||
--welcome-msg --admin-notify --help' -- "$cur" ) )
|
||||
else
|
||||
_xfunc list_lists _mailman_lists
|
||||
fi
|
||||
|
|
|
@ -40,13 +40,13 @@ _apt_build()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --show-upgraded -u --build-dir \
|
||||
--repository-dir --build-only --build-command --reinstall \
|
||||
--rebuild --remove-builddep --no-wrapper --purge --patch \
|
||||
--patch-strip -p --yes -y --version -v --no-source' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--help --show-upgraded -u --build-dir
|
||||
--repository-dir --build-only --build-command --reinstall --rebuild
|
||||
--remove-builddep --no-wrapper --purge --patch --patch-strip -p
|
||||
--yes -y --version -v --no-source' -- "$cur" ) )
|
||||
|
||||
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' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
|
|
|
@ -51,18 +51,16 @@ _apt_cache()
|
|||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
|
||||
COMPREPLY=( $( compgen -W '-h -v -p -s -q -i -f -a -g -c \
|
||||
-o --help --version --pkg-cache --src-cache \
|
||||
--quiet --important --full --all-versions \
|
||||
--no-all-versions --generate --no-generate \
|
||||
--names-only --all-names --recurse \
|
||||
--config-file --option --installed' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-h -v -p -s -q -i -f -a -g -c -o --help
|
||||
--version --pkg-cache --src-cache --quiet --important --full
|
||||
--all-versions --no-all-versions --generate --no-generate
|
||||
--names-only --all-names --recurse --config-file --option
|
||||
--installed' -- "$cur" ) )
|
||||
else
|
||||
|
||||
COMPREPLY=( $( compgen -W 'add gencaches show showpkg showsrc \
|
||||
stats dump dumpavail unmet search search \
|
||||
depends rdepends pkgnames dotty xvcg \
|
||||
policy madison' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'add gencaches show showpkg showsrc stats
|
||||
dump dumpavail unmet search search depends rdepends pkgnames
|
||||
dotty xvcg policy madison' -- "$cur" ) )
|
||||
|
||||
fi
|
||||
|
||||
|
|
|
@ -53,20 +53,19 @@ _apt_get()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-d -f -h -v -m -q -s -y -u -t -b -c -o \
|
||||
--download-only --fix-broken --help --version --ignore-missing \
|
||||
--fix-missing --no-download --quiet --simulate --just-print \
|
||||
--dry-run --recon --no-act --yes --assume-yes --show-upgraded \
|
||||
--only-source --compile --build --ignore-hold --target-release \
|
||||
--no-upgrade --force-yes --print-uris --purge --reinstall \
|
||||
--list-cleanup --default-release --trivial-only --no-remove \
|
||||
--diff-only --no-install-recommends --tar-only --config-file \
|
||||
COMPREPLY=( $( compgen -W '-d -f -h -v -m -q -s -y -u -t -b -c -o
|
||||
--download-only --fix-broken --help --version --ignore-missing
|
||||
--fix-missing --no-download --quiet --simulate --just-print
|
||||
--dry-run --recon --no-act --yes --assume-yes --show-upgraded
|
||||
--only-source --compile --build --ignore-hold --target-release
|
||||
--no-upgrade --force-yes --print-uris --purge --reinstall
|
||||
--list-cleanup --default-release --trivial-only --no-remove
|
||||
--diff-only --no-install-recommends --tar-only --config-file
|
||||
--option --auto-remove' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'update upgrade dselect-upgrade \
|
||||
dist-upgrade install remove purge source build-dep \
|
||||
download changelog \
|
||||
check clean autoclean autoremove' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'update upgrade dselect-upgrade
|
||||
dist-upgrade install remove purge source build-dep download
|
||||
changelog check clean autoclean autoremove' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
|
@ -18,13 +18,11 @@ _aptitude()
|
|||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
local dashoptions
|
||||
dashoptions='-S -u -i -h --help --version -s --simulate -d \
|
||||
--download-only -P --prompt -y --assume-yes -F \
|
||||
--display-format -O --sort -w --width -f -r -g \
|
||||
--with-recommends -R -G --without-recommends -t \
|
||||
--target-release -V --show-versions -D --show-deps\
|
||||
-Z -v --verbose --purge-unused --schedule-only'
|
||||
local dashoptions='-S -u -i -h --help --version -s --simulate -d
|
||||
--download-only -P --prompt -y --assume-yes -F --display-format -O
|
||||
--sort -w --width -f -r -g --with-recommends -R -G --without-recommends
|
||||
-t --target-release -V --show-versions -D --show-deps -Z -v --verbose
|
||||
--purge-unused --schedule-only'
|
||||
|
||||
local special i
|
||||
for (( i=0; i < ${#words[@]}-1; i++ )); do
|
||||
|
@ -76,12 +74,11 @@ _aptitude()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W "$dashoptions" -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new \
|
||||
clean autoclean install reinstall remove \
|
||||
hold unhold purge markauto unmarkauto why why-not \
|
||||
dist-upgrade full-upgrade download search show \
|
||||
forbid-version changelog keep-all build-dep \
|
||||
add-user-tag remove-user-tag versions' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new
|
||||
clean autoclean install reinstall remove hold unhold purge markauto
|
||||
unmarkauto why why-not dist-upgrade full-upgrade download search
|
||||
show forbid-version changelog keep-all build-dep add-user-tag
|
||||
remove-user-tag versions' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
|
@ -10,7 +10,7 @@ _arch()
|
|||
|
||||
case $prev in
|
||||
-w|-g|-d|--welcome-msg|--goodbye-msg|--digest)
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-d|--file)
|
||||
|
@ -22,8 +22,8 @@ _arch()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--wipe --start --end --quiet \
|
||||
--help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--wipe --start --end --quiet --help' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
local args=$cword
|
||||
for (( i=1; i < cword; i++ )); do
|
||||
|
|
|
@ -37,7 +37,8 @@ _aspell()
|
|||
return 0
|
||||
;;
|
||||
--sug-mode)
|
||||
COMPREPLY=( $( compgen -W 'ultra fast normal bad-speller' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'ultra fast normal bad-speller' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--keymapping)
|
||||
|
@ -58,31 +59,28 @@ _aspell()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--conf= --conf-dir= --data-dir= --dict-dir= \
|
||||
--encoding= --add-filter= --rem-filter= --mode= \
|
||||
--add-extra-dicts= --rem-extra-dicts= \
|
||||
--home-dir= --ignore= --ignore-accents \
|
||||
--dont-ignore-accents --ignore-case --dont-ignore-case \
|
||||
--ignore-repl --dont-ignore-repl --jargon --keyboard= \
|
||||
--lang= --language-tag --local-data-dir= --master= \
|
||||
--module --add-module-search-order \
|
||||
--rem-module-search-order --per-conf= --personal= \
|
||||
--prefix= --repl= --run-together --dont-run-together \
|
||||
--run-together-limit= --run-together-min= --save-repl \
|
||||
--dont-save-repl --set-prefix --dont-set-prefix --size= \
|
||||
--spelling --strip-accents --dont-strip-accents \
|
||||
--sug-mode= --add-word-list-path --rem-word-list-path \
|
||||
--backup --dont-backup --reverse --dont-reverse \
|
||||
--time --dont-time --keymapping= --add-email-quote= \
|
||||
--rem-email-quote= --email-margin= --add-tex-command= \
|
||||
--rem-tex-command= --tex-check-comments \
|
||||
--dont-tex-check-comments --add-tex-extension \
|
||||
--rem-tex-extension --add-sgml-check= --rem-sgml-check= \
|
||||
--add-sgml-extension --rem-sgml-extension' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--conf= --conf-dir= --data-dir= --dict-dir=
|
||||
--encoding= --add-filter= --rem-filter= --mode= --add-extra-dicts=
|
||||
--rem-extra-dicts= --home-dir= --ignore= --ignore-accents
|
||||
--dont-ignore-accents --ignore-case --dont-ignore-case
|
||||
--ignore-repl --dont-ignore-repl --jargon --keyboard= --lang=
|
||||
--language-tag --local-data-dir= --master= --module
|
||||
--add-module-search-order --rem-module-search-order --per-conf=
|
||||
--personal= --prefix= --repl= --run-together --dont-run-together
|
||||
--run-together-limit= --run-together-min= --save-repl
|
||||
--dont-save-repl --set-prefix --dont-set-prefix --size= --spelling
|
||||
--strip-accents --dont-strip-accents --sug-mode=
|
||||
--add-word-list-path --rem-word-list-path --backup --dont-backup
|
||||
--reverse --dont-reverse --time --dont-time --keymapping=
|
||||
--add-email-quote= --rem-email-quote= --email-margin=
|
||||
--add-tex-command= --rem-tex-command= --tex-check-comments
|
||||
--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
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'usage help check pipe list \
|
||||
config soundslike filter version dump create merge' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'usage help check pipe list config soundslike
|
||||
filter version dump create merge' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
complete -F _aspell aspell
|
||||
|
|
|
@ -5,7 +5,7 @@ _autorpm()
|
|||
local cur prev words cword
|
||||
_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" ) )
|
||||
|
||||
} &&
|
||||
|
|
|
@ -9,10 +9,9 @@ _brctl()
|
|||
|
||||
case $cword in
|
||||
1)
|
||||
COMPREPLY=( $( compgen -W "addbr delbr addif delif \
|
||||
setageing setbridgeprio setfd sethello \
|
||||
setmaxage setpathcost setportprio show \
|
||||
showmacs showstp stp" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "addbr delbr addif delif setageing
|
||||
setbridgeprio setfd sethello setmaxage setpathcost setportprio
|
||||
show showmacs showstp stp" -- "$cur" ) )
|
||||
;;
|
||||
2)
|
||||
case $command in
|
||||
|
|
|
@ -13,13 +13,13 @@ _btdownload()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval \
|
||||
--download_slice_size --request_backlog --max_message_length \
|
||||
--ip --minport --maxport --responsefile --url --saveas --timeout \
|
||||
--timeout_check_interval --max_slice_length --max_rate_period \
|
||||
--bind --upload_rate_fudge --display_interval --rerequest_interval \
|
||||
--min_peers --http_timeout --max_initiate --max_allow_in \
|
||||
--check_hashes --max_upload_rate --snub_time --spew \
|
||||
COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval
|
||||
--download_slice_size --request_backlog --max_message_length
|
||||
--ip --minport --maxport --responsefile --url --saveas --timeout
|
||||
--timeout_check_interval --max_slice_length --max_rate_period
|
||||
--bind --upload_rate_fudge --display_interval --rerequest_interval
|
||||
--min_peers --http_timeout --max_initiate --max_allow_in
|
||||
--check_hashes --max_upload_rate --snub_time --spew
|
||||
--rarest_first_cutoff --min_uploads --report_hash_failures' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
|
|
|
@ -6,8 +6,8 @@ _cardctl()
|
|||
_init_completion || return
|
||||
|
||||
if [[ $cword -eq 1 ]]; then
|
||||
COMPREPLY=( $( compgen -W 'status config ident suspend \
|
||||
resume reset eject insert scheme' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'status config ident suspend resume reset
|
||||
eject insert scheme' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
complete -F _cardctl cardctl pccardctl
|
||||
|
|
|
@ -22,7 +22,7 @@ _cfrun()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-f -h -d -S -T -v' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '-f -h -d -S -T -v' -- "$cur" ) )
|
||||
else
|
||||
hostfile=${CFINPUTS:-/var/lib/cfengine/inputs}/cfrun.hosts
|
||||
for (( i=1; i < cword; i++ )); do
|
||||
|
|
|
@ -15,8 +15,8 @@ _change_pw()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--all --domain --listname \
|
||||
--password --quiet --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--all --domain --listname --password --quiet
|
||||
--help' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
|
@ -20,9 +20,9 @@ _chgrp()
|
|||
for w in "${words[@]}" ; do
|
||||
[[ "$w" == -@(R|-recursive) ]] && opts="-H -L -P" && break
|
||||
done
|
||||
COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference \
|
||||
--no-dereference --silent --quiet --reference --recursive \
|
||||
--verbose --help --version $opts' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference
|
||||
--no-dereference --silent --quiet --reference --recursive --verbose
|
||||
--help --version $opts' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ _chown()
|
|||
for w in "${words[@]}" ; do
|
||||
[[ "$w" == -@(R|-recursive) ]] && opts="-H -L -P" && break
|
||||
done
|
||||
COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference \
|
||||
--no-dereference --from --silent --quiet --reference --recursive \
|
||||
COMPREPLY=( $( compgen -W '-c -h -f -R -v --changes --dereference
|
||||
--no-dereference --from --silent --quiet --reference --recursive
|
||||
--verbose --help --version $opts' -- "$cur" ) )
|
||||
else
|
||||
local args
|
||||
|
|
|
@ -6,8 +6,8 @@ _cleanarch()
|
|||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--status --dry-run --quiet \
|
||||
--help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--status --dry-run --quiet --help' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
|
@ -9,9 +9,9 @@ _clisp()
|
|||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \
|
||||
-M -m -L -N -E -q --quiet --silent -w -I -ansi \
|
||||
-traditional -p -C -norc -i -c -l -o -x ' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-h --help --version --license -B -K -M -m -L
|
||||
-N -E -q --quiet --silent -w -I -ansi -traditional -p -C -norc -i
|
||||
-c -l -o -x ' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
|
|
@ -15,8 +15,8 @@ _clone_member()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--listname --remove --admin \
|
||||
--quiet --nomodify --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--listname --remove --admin --quiet
|
||||
--nomodify --help' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
|
@ -7,16 +7,16 @@ _complete()
|
|||
|
||||
case $prev in
|
||||
-o)
|
||||
COMPREPLY=( $( compgen -W 'bashdefault default dirnames filenames \
|
||||
COMPREPLY=( $( compgen -W 'bashdefault default dirnames filenames
|
||||
nospace plusdirs' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
|
||||
-A)
|
||||
COMPREPLY=( $( compgen -W 'alias arrayvar binding builtin command \
|
||||
directory disabled enabled export file function group \
|
||||
helptopic hostname job keyword running service setopt shopt \
|
||||
signal stopped user variable' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'alias arrayvar binding builtin command
|
||||
directory disabled enabled export file function group helptopic
|
||||
hostname job keyword running service setopt shopt signal
|
||||
stopped user variable' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ _config_list()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--inputfile --outputfile \
|
||||
--checkonly --verbose --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--inputfile --outputfile --checkonly
|
||||
--verbose --help' -- "$cur" ) )
|
||||
else
|
||||
_xfunc list_lists _mailman_lists
|
||||
fi
|
||||
|
|
|
@ -4,8 +4,8 @@ _ImageMagick()
|
|||
{
|
||||
case $prev in
|
||||
-channel)
|
||||
COMPREPLY=( $( compgen -W 'Red Green Blue Opacity \
|
||||
Matte Cyan Magenta Yellow Black' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'Red Green Blue Opacity Matte Cyan
|
||||
Magenta Yellow Black' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-colormap)
|
||||
|
@ -13,19 +13,19 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-colorspace)
|
||||
COMPREPLY=( $( compgen -W 'GRAY OHTA RGB Transparent \
|
||||
XYZ YCbCr YIQ YPbPr YUV CMYK' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'GRAY OHTA RGB Transparent XYZ YCbCr YIQ
|
||||
YPbPr YUV CMYK' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-compose)
|
||||
COMPREPLY=( $( compgen -W 'Over In Out Atop Xor Plus \
|
||||
Minus Add Subtract Difference Multiply Bumpmap\
|
||||
Copy CopyRed CopyGreen CopyBlue CopyOpacity' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'Over In Out Atop Xor Plus Minus Add
|
||||
Subtract Difference Multiply Bumpmap Copy CopyRed CopyGreen
|
||||
CopyBlue CopyOpacity' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-compress)
|
||||
COMPREPLY=( $( compgen -W 'None BZip Fax Group4 JPEG \
|
||||
Lossless LZW RLE Zip' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'None BZip Fax Group4 JPEG Lossless LZW
|
||||
RLE Zip' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-dispose)
|
||||
|
@ -34,9 +34,9 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-encoding)
|
||||
COMPREPLY=( $( compgen -W 'AdobeCustom AdobeExpert \
|
||||
AdobeStandard AppleRoman BIG5 GB2312 Latin2 \
|
||||
None SJIScode Symbol Unicode Wansung' -- "$cur"))
|
||||
COMPREPLY=( $( compgen -W 'AdobeCustom AdobeExpert AdobeStandard
|
||||
AppleRoman BIG5 GB2312 Latin2 None SJIScode Symbol Unicode
|
||||
Wansung' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-endian)
|
||||
|
@ -44,9 +44,9 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-filter)
|
||||
COMPREPLY=( $( compgen -W 'Point Box Triangle Hermite \
|
||||
Hanning Hamming Blackman Gaussian Quadratic \
|
||||
Cubic Catrom Mitchell Lanczos Bessel Sinc' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'Point Box Triangle Hermite Hanning
|
||||
Hamming Blackman Gaussian Quadratic Cubic Catrom Mitchell
|
||||
Lanczos Bessel Sinc' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-format)
|
||||
|
@ -56,13 +56,13 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-gravity)
|
||||
COMPREPLY=( $( compgen -W 'Northwest North NorthEast \
|
||||
West Center East SouthWest South SouthEast' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'Northwest North NorthEast West Center
|
||||
East SouthWest South SouthEast' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-intent)
|
||||
COMPREPLY=( $( compgen -W 'Absolute Perceptual \
|
||||
Relative Saturation' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'Absolute Perceptual Relative
|
||||
Saturation' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-interlace)
|
||||
|
@ -74,7 +74,7 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-list)
|
||||
COMPREPLY=( $( compgen -W 'Delegate Format Magic Module Resource \
|
||||
COMPREPLY=( $( compgen -W 'Delegate Format Magic Module Resource
|
||||
Type' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
|
@ -85,18 +85,16 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-noise)
|
||||
COMPREPLY=( $( compgen -W 'Uniform Gaussian Multiplicative \
|
||||
COMPREPLY=( $( compgen -W 'Uniform Gaussian Multiplicative
|
||||
Impulse Laplacian Poisson' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-preview)
|
||||
COMPREPLY=( $( compgen -W 'Rotate Shear Roll Hue \
|
||||
Saturation Brightness Gamma Spiff \
|
||||
Dull Grayscale Quantize Despeckle \
|
||||
ReduceNoise AddNoise Sharpen Blur \
|
||||
Treshold EdgeDetect Spread Shade \
|
||||
Raise Segment Solarize Swirl Implode \
|
||||
Wave OilPaint CharcoalDrawing JPEG' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'Rotate Shear Roll Hue Saturation
|
||||
Brightness Gamma Spiff Dull Grayscale Quantize Despeckle
|
||||
ReduceNoise AddNoise Sharpen Blur Treshold EdgeDetect Spread
|
||||
Shade Raise Segment Solarize Swirl Implode Wave OilPaint
|
||||
CharcoalDrawing JPEG' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-mask|-profile|-texture|-tile|-write)
|
||||
|
@ -104,13 +102,13 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-type)
|
||||
COMPREPLY=( $( compgen -W 'Bilevel Grayscale Palette PaletteMatte \
|
||||
TrueColor TrueColorMatte ColorSeparation ColorSeparationlMatte \
|
||||
COMPREPLY=( $( compgen -W 'Bilevel Grayscale Palette PaletteMatte
|
||||
TrueColor TrueColorMatte ColorSeparation ColorSeparationlMatte
|
||||
Optimize' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-units)
|
||||
COMPREPLY=( $( compgen -W 'Undefined PixelsPerInch \
|
||||
COMPREPLY=( $( compgen -W 'Undefined PixelsPerInch
|
||||
PixelsPerCentimeter' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
|
@ -119,8 +117,9 @@ _ImageMagick()
|
|||
return 0
|
||||
;;
|
||||
-visual)
|
||||
COMPREPLY=( $( compgen -W 'StaticGray GrayScale StaticColor \
|
||||
PseudoColor TrueColor DirectColor defaut visualid' -- "$cur" ))
|
||||
COMPREPLY=( $( compgen -W 'StaticGray GrayScale StaticColor
|
||||
PseudoColor TrueColor DirectColor defaut visualid' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@ -138,10 +137,9 @@ _convert()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
elif [[ "$cur" == +* ]]; then
|
||||
COMPREPLY=( $( compgen -W '+adjoin +append +compress \
|
||||
+contrast +debug +dither +endian +gamma +label +map \
|
||||
+mask +matte +negate +noise +page +raise +render \
|
||||
+write' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '+adjoin +append +compress +contrast +debug
|
||||
+dither +endian +gamma +label +map +mask +matte +negate +noise
|
||||
+page +raise +render +write' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
@ -158,9 +156,8 @@ _mogrify()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
elif [[ "$cur" == +* ]]; then
|
||||
COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither \
|
||||
+endian +gamma +label +map +mask +matte +negate +page \
|
||||
+raise' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither +endian
|
||||
+gamma +label +map +mask +matte +negate +page +raise' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
@ -177,9 +174,8 @@ _display()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
elif [[ "$cur" == +* ]]; then
|
||||
COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither \
|
||||
+endian +gamma +label +map +matte +negate +page \
|
||||
+raise +write' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '+compress +contrast +debug +dither +endian
|
||||
+gamma +label +map +matte +negate +page +raise +write' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
@ -231,8 +227,8 @@ _montage()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
elif [[ "$cur" == +* ]]; then
|
||||
COMPREPLY=( $( compgen -W '+adjoin +compress +debug +dither \
|
||||
+endian +gamma +label +matte +page' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '+adjoin +compress +debug +dither +endian
|
||||
+gamma +label +matte +page' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
@ -249,7 +245,7 @@ _composite()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
elif [[ "$cur" == +* ]]; then
|
||||
COMPREPLY=( $( compgen -W '+compress +debug +dither +endian +label \
|
||||
COMPREPLY=( $( compgen -W '+compress +debug +dither +endian +label
|
||||
+matte +negate +page +write' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
|
|
@ -33,9 +33,9 @@ _cryptsetup()
|
|||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'create remove status resize luksFormat \
|
||||
luksOpen luksClose luksSuspend luksResume luksAddKey \
|
||||
luksRemoveKey luksKillSlot luksDelKey luksUUID isLuks \
|
||||
COMPREPLY=( $( compgen -W 'create remove status resize luksFormat
|
||||
luksOpen luksClose luksSuspend luksResume luksAddKey
|
||||
luksRemoveKey luksKillSlot luksDelKey luksUUID isLuks
|
||||
luksDump luksHeaderBackup luksHeaderRestore' -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
|
|
|
@ -326,7 +326,7 @@ _cvs()
|
|||
fi
|
||||
pwd=$( pwd )
|
||||
pwd=${pwd##*/}
|
||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $pwd' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $pwd' -- "$cur" ) )
|
||||
else
|
||||
_cvs_command_options "$1" $mode
|
||||
fi
|
||||
|
@ -376,9 +376,9 @@ _cvs()
|
|||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( compgen -W '$( _cvs_commands ) \
|
||||
$( _parse_help "$1" --help-options ) \
|
||||
--help --help-commands --help-options --version' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '$( _cvs_commands )
|
||||
$( _parse_help "$1" --help-options ) --help --help-commands
|
||||
--help-options --version' -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ _dhclient()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-p -d -q -1 -r -lf -pf \
|
||||
-cf -sf -s -g -n -nw -w' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-p -d -q -1 -r -lf -pf -cf -sf -s -g -n -nw
|
||||
-w' -- "$cur" ) )
|
||||
else
|
||||
_available_interfaces
|
||||
fi
|
||||
|
|
|
@ -111,7 +111,7 @@ _dpkg_reconfigure()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $(compgen -W '--frontend --priority --all --unseen-only \
|
||||
COMPREPLY=( $(compgen -W '--frontend --priority --all --unseen-only
|
||||
--help --showold --force --terse' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) )
|
||||
|
|
|
@ -17,11 +17,11 @@ _dselect()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--admindir --help --version --licence \
|
||||
--license --expert --debug' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--admindir --help --version --licence
|
||||
--expert --debug' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'access update select install config \
|
||||
remove quit' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'access update select install config remove
|
||||
quit' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
|
@ -6,8 +6,8 @@ _dumpdb()
|
|||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--marshal --pickle --noprint \
|
||||
--help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--marshal --pickle --noprint --help' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
|
|
@ -56,8 +56,8 @@ _find()
|
|||
return 0
|
||||
;;
|
||||
-regextype)
|
||||
COMPREPLY=( $( compgen -W 'emacs posix-awk posix-basic \
|
||||
posix-egrep posix-extended' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'emacs posix-awk posix-basic posix-egrep
|
||||
posix-extended' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@ -77,17 +77,16 @@ _find()
|
|||
fi
|
||||
|
||||
# complete using basic options
|
||||
COMPREPLY=( $( compgen -W '-daystart -depth -follow -help \
|
||||
-ignore_readdir_race -maxdepth -mindepth -mindepth -mount \
|
||||
-noignore_readdir_race -noleaf -regextype -version -warn -nowarn \
|
||||
-xdev \
|
||||
-amin -anewer -atime -cmin -cnewer -ctime -empty -executable -false \
|
||||
-fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \
|
||||
-links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \
|
||||
-readable -regex -samefile -size -true -type -uid -used -user \
|
||||
-wholename -writable -xtype -context \
|
||||
-delete -exec -execdir -fls -fprint -fprint0 -fprintf -ls -ok -okdir \
|
||||
-print -print0 -printf -prune -quit' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-daystart -depth -follow -help
|
||||
-ignore_readdir_race -maxdepth -mindepth -mindepth -mount
|
||||
-noignore_readdir_race -noleaf -regextype -version -warn -nowarn -xdev
|
||||
-amin -anewer -atime -cmin -cnewer -ctime -empty -executable -false
|
||||
-fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename
|
||||
-links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm
|
||||
-readable -regex -samefile -size -true -type -uid -used -user
|
||||
-wholename -writable -xtype -context -delete -exec -execdir -fls
|
||||
-fprint -fprint0 -fprintf -ls -ok -okdir -print -print0 -printf -prune
|
||||
-quit' -- "$cur" ) )
|
||||
|
||||
if [[ ${#COMPREPLY[@]} -ne 0 ]]; then
|
||||
# this removes any options from the list of completions that have
|
||||
|
|
|
@ -15,8 +15,8 @@ _find_member()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--listname --exclude --owners \
|
||||
--help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--listname --exclude --owners --help' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
|
@ -9,8 +9,8 @@ _gcl()
|
|||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-eval -load -f -batch -dir -libdir \
|
||||
-compile -o-file -c-file -h-file -data-file -system-p '-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-eval -load -f -batch -dir -libdir -compile
|
||||
-o-file -c-file -h-file -data-file -system-p' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
|
|
@ -68,8 +68,8 @@ _getent()
|
|||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
elif [[ -z $db ]]; then
|
||||
COMPREPLY=( $( compgen -W 'passwd group hosts services protocols \
|
||||
networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc \
|
||||
COMPREPLY=( $( compgen -W 'passwd group hosts services protocols
|
||||
networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc
|
||||
shadow gshadow' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
|
|
|
@ -8,17 +8,14 @@ _gnatmake()
|
|||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
# relevant (and less relevant ;-) )options completion
|
||||
COMPREPLY=( $( compgen -W '-a -c -f -i -j -k -m -M -n -o \
|
||||
-q -s -v -z -aL -A -aO -aI -I -I- -L -nostdinc \
|
||||
-nostdlib -cargs -bargs -largs -fstack-check \
|
||||
-fno-inline -g -O1 -O0 -O2 -O3 -gnata -gnatA \
|
||||
-gnatb -gnatc -gnatd -gnatD -gnate -gnatE \
|
||||
-gnatf -gnatF -gnatg -gnatG -gnath -gnati \
|
||||
-gnatk -gnatl -gnatL -gnatm -gnatn -gnato \
|
||||
-gnatO -gnatp -gnatP -gnatq -gnatR -gnats \
|
||||
-gnatt -gnatT -gnatu -gnatU -gnatv -gnatws \
|
||||
-gnatwe -gnatwl -gnatwu -gnatW -gnatx -gnatX \
|
||||
-gnaty -gnatz -gnatZ -gnat83' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-a -c -f -i -j -k -m -M -n -o -q -s -v -z
|
||||
-aL -A -aO -aI -I -I- -L -nostdinc -nostdlib -cargs -bargs -largs
|
||||
-fstack-check -fno-inline -g -O1 -O0 -O2 -O3 -gnata -gnatA -gnatb
|
||||
-gnatc -gnatd -gnatD -gnate -gnatE -gnatf -gnatF -gnatg -gnatG
|
||||
-gnath -gnati -gnatk -gnatl -gnatL -gnatm -gnatn -gnato -gnatO
|
||||
-gnatp -gnatP -gnatq -gnatR -gnats -gnatt -gnatT -gnatu -gnatU
|
||||
-gnatv -gnatws -gnatwe -gnatwl -gnatwu -gnatW -gnatx -gnatX -gnaty
|
||||
-gnatz -gnatZ -gnat83' -- "$cur" ) )
|
||||
else
|
||||
# source file completion
|
||||
_filedir '@(adb|ads)'
|
||||
|
|
|
@ -19,11 +19,11 @@ _gpg()
|
|||
;;
|
||||
-r|--recipient)
|
||||
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
|
||||
COMPREPLY+=( $( compgen -W "$( sed -ne \
|
||||
's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
|
||||
~/.gnupg/gpg.conf )" -- "$cur") )
|
||||
~/.gnupg/gpg.conf )" -- "$cur" ) )
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
|
|
|
@ -23,11 +23,11 @@ _gpg2()
|
|||
;;
|
||||
-r|--recipient)
|
||||
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
|
||||
COMPREPLY+=( $( compgen -W "$( sed -ne \
|
||||
's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
|
||||
~/.gnupg/gpg.conf)" -- "$cur"))
|
||||
~/.gnupg/gpg.conf)" -- "$cur" ) )
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
|
|
|
@ -16,9 +16,9 @@ _bluetooth_devices()
|
|||
|
||||
_bluetooth_services()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'DID SP DUN LAN FAX OPUSH FTP HS HF HFAG \
|
||||
SAP NAP GN PANU HCRP HID CIP A2SRC A2SNK AVRCT AVRTG UDIUE \
|
||||
UDITE SYNCML' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'DID SP DUN LAN FAX OPUSH FTP HS HF HFAG SAP NAP
|
||||
GN PANU HCRP HID CIP A2SRC A2SNK AVRCT AVRTG UDIUE UDITE SYNCML' \
|
||||
-- "$cur" ) )
|
||||
}
|
||||
|
||||
_bluetooth_packet_types()
|
||||
|
@ -55,9 +55,9 @@ _hcitool()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'dev inq scan name info \
|
||||
spinq epinq cmd con cc dc sr cpt rssi lq tpl \
|
||||
afh lst auth enc key clkoff clock' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'dev inq scan name info spinq epinq cmd
|
||||
con cc dc sr cpt rssi lq tpl afh lst auth enc key clkoff
|
||||
clock' -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
case $arg in
|
||||
|
@ -126,15 +126,15 @@ _sdptool()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'search browse records add \
|
||||
del get setattr setseq' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'search browse records add del get
|
||||
setattr setseq' -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
case $arg in
|
||||
search)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--bdaddr \
|
||||
--tree --raw --xml' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--bdaddr --tree --raw --xml' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
_bluetooth_services
|
||||
fi
|
||||
|
@ -155,8 +155,8 @@ _sdptool()
|
|||
;;
|
||||
get)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--bdaddr \
|
||||
--tree --raw --xml' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--bdaddr --tree --raw --xml' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
@ -210,8 +210,8 @@ _rfcomm()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'show connect listen watch \
|
||||
bind release' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'show connect listen watch bind
|
||||
release' -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
_count_args
|
||||
|
@ -249,8 +249,8 @@ _ciptool()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'show search connect release \
|
||||
loopback' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'show search connect release loopback' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
case $arg in
|
||||
|
@ -284,8 +284,8 @@ _dfutool()
|
|||
_count_args
|
||||
case $args in
|
||||
1)
|
||||
COMPREPLY=( $( compgen -W 'verify modify \
|
||||
upgrade archive' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'verify modify upgrade archive' \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
2)
|
||||
_filedir
|
||||
|
@ -306,13 +306,11 @@ _hciconfig()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --all' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'up down reset rstat auth \
|
||||
noauth encrypt noencrypt secmgr nosecmgr \
|
||||
piscan noscan iscan pscan ptype name class \
|
||||
voice iac inqmode inqdata inqtype inqparams \
|
||||
pageparms pageto afhmode aclmtu scomtu putkey \
|
||||
delkey commands features version revision lm' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'up down reset rstat auth noauth encrypt
|
||||
noencrypt secmgr nosecmgr piscan noscan iscan pscan ptype name
|
||||
class voice iac inqmode inqdata inqtype inqparams pageparms
|
||||
pageto afhmode aclmtu scomtu putkey delkey commands features
|
||||
version revision lm' -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
case $arg in
|
||||
|
@ -325,8 +323,8 @@ _hciconfig()
|
|||
lm)
|
||||
_count_args
|
||||
if [[ $args -eq 2 ]]; then
|
||||
COMPREPLY=( $( compgen -W 'MASTER \
|
||||
SLAVE NONE ACCEPT' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'MASTER SLAVE NONE ACCEPT' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
;;
|
||||
ptype)
|
||||
|
@ -353,17 +351,16 @@ _hciattach()
|
|||
case $args in
|
||||
1)
|
||||
COMPREPLY=( $( printf '%s\n' /dev/tty* ) )
|
||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} \
|
||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}
|
||||
${COMPREPLY[@]#/dev/}' -- "$cur" ) )
|
||||
;;
|
||||
2)
|
||||
COMPREPLY=( $( compgen -W 'any ericsson digi \
|
||||
xircom csr bboxes swave bcsp 0x0105 \
|
||||
0x080a 0x0160 0x0002' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'any ericsson digi xircom csr bboxes
|
||||
swave bcsp 0x0105 0x080a 0x0160 0x0002' -- "$cur" ) )
|
||||
;;
|
||||
3)
|
||||
COMPREPLY=( $( compgen -W '9600 19200 38400 \
|
||||
57600 115200 230400 460800 921600' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '9600 19200 38400 57600 115200 230400
|
||||
460800 921600' -- "$cur" ) )
|
||||
;;
|
||||
4)
|
||||
COMPREPLY=( $( compgen -W 'flow noflow' -- "$cur" ) )
|
||||
|
|
|
@ -6,8 +6,8 @@ _hid2hci()
|
|||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --quiet -0 --tohci -1 \
|
||||
--tohid' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--help --quiet -0 --tohci -1 --tohid' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
complete -F _hid2hci hid2hci
|
||||
|
|
|
@ -21,8 +21,8 @@ _installpkg()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--warn --md5sum --root --infobox --terse \
|
||||
--menu --ask --priority --tagfile' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W '--warn --md5sum --root --infobox --terse
|
||||
--menu --ask --priority --tagfile' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -19,22 +19,21 @@ _ipsec_freeswan()
|
|||
_init_completion || return
|
||||
|
||||
if [[ $cword -eq 1 ]]; then
|
||||
COMPREPLY=( $( compgen -W 'auto barf eroute klipsdebug look manual \
|
||||
pluto ranbits rsasigkey setup showdefaults showhostkey spi spigrp \
|
||||
COMPREPLY=( $( compgen -W 'auto barf eroute klipsdebug look manual
|
||||
pluto ranbits rsasigkey setup showdefaults showhostkey spi spigrp
|
||||
tncfg whack' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
case ${words[1]} in
|
||||
auto)
|
||||
COMPREPLY=( $( compgen -W '--asynchronous --up --add --delete \
|
||||
--replace --down --route --unroute \
|
||||
--ready --status --rereadsecrets' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--asynchronous --up --add --delete
|
||||
--replace --down --route --unroute --ready --status
|
||||
--rereadsecrets' -- "$cur" ) )
|
||||
;;
|
||||
manual)
|
||||
COMPREPLY=( $( compgen -W '--up --down --route --unroute \
|
||||
--union' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--up --down --route --unroute --union' \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
ranbits)
|
||||
COMPREPLY=( $( compgen -W '--quick --continuous --bytes' \
|
||||
|
@ -56,14 +55,14 @@ _ipsec_strongswan()
|
|||
_init_completion || return
|
||||
|
||||
if [[ $cword -eq 1 ]]; then
|
||||
COMPREPLY=( $( compgen -W 'down irdumm leases listaacerts listacerts \
|
||||
listalgs listall listcacerts listcainfos listcards listcerts \
|
||||
COMPREPLY=( $( compgen -W 'down irdumm leases listaacerts listacerts
|
||||
listalgs listall listcacerts listcainfos listcards listcerts
|
||||
listcrls listgroups listocsp listocspcerts listpubkeys openac pki
|
||||
pluto pool purgecerts purgecrls purgeike purgeocsp ready reload \
|
||||
rereadaacerts rereadacerts rereadall rereadcacerts rereadcrls \
|
||||
rereadgroups rereadocspcerts rereadsecrets restart route scdecrypt \
|
||||
scencrypt scepclient secrets start starter status statusall stop \
|
||||
stroke unroute uci up update version whack --confdir --copyright \
|
||||
pluto pool purgecerts purgecrls purgeike purgeocsp ready reload
|
||||
rereadaacerts rereadacerts rereadall rereadcacerts rereadcrls
|
||||
rereadgroups rereadocspcerts rereadsecrets restart route scdecrypt
|
||||
scencrypt scepclient secrets start starter status statusall stop
|
||||
stroke unroute uci up update version whack --confdir --copyright
|
||||
--directory --help --version --versioncode' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
@ -77,11 +76,11 @@ _ipsec_strongswan()
|
|||
COMPREPLY=( $( compgen -W '--utc' -- "$cur" ) )
|
||||
;;
|
||||
restart|start)
|
||||
COMPREPLY=( $( compgen -W '--attach-gdb --auto-update --debug \
|
||||
COMPREPLY=( $( compgen -W '--attach-gdb --auto-update --debug
|
||||
--debug-all --debug-more --nofork' -- "$cur" ) )
|
||||
;;
|
||||
pki)
|
||||
COMPREPLY=( $( compgen -W '--gen --issue --keyid --print --pub \
|
||||
COMPREPLY=( $( compgen -W '--gen --issue --keyid --print --pub
|
||||
--req --self --signcrl --verify' -- "$cur" ) )
|
||||
;;
|
||||
pool)
|
||||
|
|
|
@ -25,31 +25,31 @@ _iptables()
|
|||
;;
|
||||
-j)
|
||||
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" \
|
||||
-e "s/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//"`' -- \
|
||||
"$cur" ) )
|
||||
elif [[ $table == "-t nat" ]]; then
|
||||
COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT \
|
||||
MIRROR SNAT DNAT MASQUERADE `iptables $table -nL | \
|
||||
COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT MIRROR SNAT
|
||||
DNAT MASQUERADE `iptables $table -nL | \
|
||||
sed -ne "$chain" -e "s/OUTPUT|PREROUTING|POSTROUTING//"`' \
|
||||
-- "$cur" ) )
|
||||
elif [[ $table == "-t mangle" ]]; then
|
||||
COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT \
|
||||
MARK TOS `iptables $table -nL | sed -ne "$chain" \
|
||||
COMPREPLY=( $( compgen -W 'ACCEPT DROP LOG ULOG REJECT MARK TOS
|
||||
`iptables $table -nL | sed -ne "$chain" \
|
||||
-e "s/INPUT|OUTPUT|FORWARD|PREROUTING|POSTROUTING//"`' -- \
|
||||
"$cur" ) )
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--in-interface --out-interface --source \
|
||||
--destination --protocol --fragment --match --append \
|
||||
--delete --insert --replace --list --flush --zero --new \
|
||||
--delete-chain --policy --rename-chain --proto --source \
|
||||
--destination --in-interface --jump --match --numeric \
|
||||
--out-interface --table --verbose --line-numbers --exact \
|
||||
--fragment --modprobe --set-counters --version' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W '--in-interface --out-interface --source
|
||||
--destination --protocol --fragment --match --append --delete
|
||||
--insert --replace --list --flush --zero --new --delete-chain
|
||||
--policy --rename-chain --proto --source --destination
|
||||
--in-interface --jump --match --numeric --out-interface --table
|
||||
--verbose --line-numbers --exact --fragment --modprobe
|
||||
--set-counters --version' -- "$cur" ) )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -28,14 +28,13 @@ _ipv6calc()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --debug --quiet --in \
|
||||
--out --action --examples --showinfo --show_types \
|
||||
--machine_readable --db-geoip --db-geoip-default \
|
||||
--db-ip2location-ipv4 --db-ip2location-ipv6 \
|
||||
--lowercase --uppercase --printprefix --printsuffix \
|
||||
--maskprefix --masksuffix --printstart --printend \
|
||||
--printcompressed --printuncompressed \
|
||||
--printfulluncompressed --printmirrored' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--help --debug --quiet --in --out --action
|
||||
--examples --showinfo --show_types --machine_readable --db-geoip
|
||||
--db-geoip-default --db-ip2location-ipv4 --db-ip2location-ipv6
|
||||
--lowercase --uppercase --printprefix --printsuffix --maskprefix
|
||||
--masksuffix --printstart --printend --printcompressed
|
||||
--printuncompressed --printfulluncompressed --printmirrored' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ _iwconfig()
|
|||
|
||||
case $prev in
|
||||
mode)
|
||||
COMPREPLY=( $( compgen -W 'managed ad-hoc master \
|
||||
repeater secondary monitor' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'managed ad-hoc master repeater secondary
|
||||
monitor' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
essid)
|
||||
|
@ -80,8 +80,8 @@ _iwconfig()
|
|||
_available_interfaces -w
|
||||
fi
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'essid nwid mode freq channel sens mode \
|
||||
ap nick rate rts frag enc key power txpower commit' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'essid nwid mode freq channel sens mode ap
|
||||
nick rate rts frag enc key power txpower commit' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
|
@ -12,9 +12,9 @@ _iwlist()
|
|||
_available_interfaces -w
|
||||
fi
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'scan scanning freq frequency \
|
||||
channel rate bit bitrate key enc encryption power \
|
||||
txpower retry ap accesspoint peers event' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'scan scanning freq frequency channel rate
|
||||
bit bitrate key enc encryption power txpower retry ap accesspoint
|
||||
peers event' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
complete -F _iwlist iwlist
|
||||
|
|
|
@ -42,9 +42,9 @@ _jarsigner()
|
|||
if ! $jar ; then
|
||||
if [[ "$cur" == -* ]] ; then
|
||||
# Documented as "should not be used": -internalsf, -sectionsonly
|
||||
COMPREPLY=( $( compgen -W '-keystore -storepass -storetype \
|
||||
-keypass -sigfile -signedjar -digestalg -sigalg -verify \
|
||||
-verbose -certs -tsa -tsacert -altsigner -altsignerpath \
|
||||
COMPREPLY=( $( compgen -W '-keystore -storepass -storetype
|
||||
-keypass -sigfile -signedjar -digestalg -sigalg -verify
|
||||
-verbose -certs -tsa -tsacert -altsigner -altsignerpath
|
||||
-protected -providerName -providerClass -providerArg' \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
|
|
|
@ -14,8 +14,8 @@ _heimdal_realms()
|
|||
|
||||
_heimdal_encodings()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'des-cbc-mcrc des-cbc-md4 des-cbc-md5 \
|
||||
des3-cbc-sha1 arcfour-hmac-md5 aes128-cts-hmac-sha1-96 \
|
||||
COMPREPLY=( $( compgen -W 'des-cbc-mcrc des-cbc-md4 des-cbc-md5
|
||||
des3-cbc-sha1 arcfour-hmac-md5 aes128-cts-hmac-sha1-96
|
||||
aes256-cts-hmac-sha1-96' -- "$cur" ) )
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ _ktutil()
|
|||
|
||||
$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'
|
||||
|
||||
for (( i=1; i < cword; i++ )); do
|
||||
|
@ -71,14 +71,14 @@ _ktutil()
|
|||
if [[ "$cur" == -* ]]; then
|
||||
case $command in
|
||||
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'
|
||||
;;
|
||||
change)
|
||||
options='-r --realm -a --admin-server -s --server-port'
|
||||
;;
|
||||
get)
|
||||
options='-p --principal -e --enctype -r --realm -a \
|
||||
options='-p --principal -e --enctype -r --realm -a
|
||||
--admin-server -s server --server-port'
|
||||
;;
|
||||
list)
|
||||
|
|
|
@ -30,7 +30,7 @@ _larch()
|
|||
distribution-name notify my-notifier mail-new-categories \
|
||||
mail-new-branches mail-new-versions mail-new-revisions \
|
||||
notify-library notify-browser push-new-revisions sendmail-mailx' \
|
||||
"$cur" ))
|
||||
"$cur" ) )
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
|
|
@ -11,8 +11,8 @@ _ldapvi()
|
|||
return 0
|
||||
;;
|
||||
-Y|--sasl-mech)
|
||||
COMPREPLY=( $( compgen -W 'EXTERNAL GSSAPI DIGEST-MD5 \
|
||||
CRAM-MD5 PLAIN ANONYMOUS' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5
|
||||
PLAIN ANONYMOUS' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--bind)
|
||||
|
@ -20,7 +20,7 @@ _ldapvi()
|
|||
return 0
|
||||
;;
|
||||
--bind-dialog)
|
||||
COMPREPLY=( $( compgen -W 'never auto always' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'never auto always' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--scope)
|
||||
|
@ -37,8 +37,7 @@ _ldapvi()
|
|||
return 0
|
||||
;;
|
||||
--tls)
|
||||
COMPREPLY=( $( compgen -W 'never allow try strict' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'never allow try strict' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -33,16 +33,16 @@ _lilo()
|
|||
;;
|
||||
-T)
|
||||
# topic completion
|
||||
COMPREPLY=( $( compgen -W 'help ChRul EBDA geom geom= \
|
||||
table= video' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'help ChRul EBDA geom geom= table=
|
||||
video' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
# relevant options completion
|
||||
COMPREPLY=( $( compgen -W '-A -b -c -C -d -f -g -i -I -l -L -m \
|
||||
-M -p -P -q -r -R -s -S -t -T -u -U -v -V -w -x -z' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-A -b -c -C -d -f -g -i -I -l -L -m -M -p -P
|
||||
-q -r -R -s -S -t -T -u -U -v -V -w -x -z' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
complete -F _lilo lilo
|
||||
|
|
|
@ -10,12 +10,12 @@ _links()
|
|||
COMPREPLY=( $( compgen -W '--help' -- "$cur" ) )
|
||||
;;
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W '-async-dns -max-connections \
|
||||
-max-connections-to-host -retries -receive-timeout \
|
||||
-unrestartable-receive-timeout -format-cache-size \
|
||||
-memory-cache-size -http-proxy -ftp-proxy -download-dir \
|
||||
-assume-codepage -anonymous -dump -no-connect \
|
||||
-source -version -help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-async-dns -max-connections
|
||||
-max-connections-to-host -retries -receive-timeout
|
||||
-unrestartable-receive-timeout -format-cache-size
|
||||
-memory-cache-size -http-proxy -ftp-proxy -download-dir
|
||||
-assume-codepage -anonymous -dump -no-connect -source -version
|
||||
-help' -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
if [[ -r ~/.links/links.his ]]; then
|
||||
|
|
|
@ -82,17 +82,16 @@ _lintian()
|
|||
local action lint_actions general_opts behaviour_opts \
|
||||
configuration_opts selection_opts
|
||||
|
||||
lint_actions="--setup-lab --remove-lab --check --check-part --tags \
|
||||
--tags-from-file --ftp-master-rejects --dont-check-part \
|
||||
--unpack --remove"
|
||||
lint_actions="--setup-lab --remove-lab --check --check-part --tags
|
||||
--tags-from-file --ftp-master-rejects --dont-check-part --unpack
|
||||
--remove"
|
||||
general_opts="--help --version --print-version --verbose --debug --quiet"
|
||||
behaviour_opts="--info --display-info --display-experimental --pedantic \
|
||||
--display-level --suppress-tags \
|
||||
--suppress-tags-from-file --no-override --show-overrides \
|
||||
--color --unpack-info --md5sums --checksums --allow-root \
|
||||
--fail-on-warnings --keep-lab"
|
||||
configuration_opts="--cfg --lab --archivedir --dist --area --section \
|
||||
--arch --root"
|
||||
behaviour_opts="--info --display-info --display-experimental --pedantic
|
||||
--display-level --suppress-tags --suppress-tags-from-file --no-override
|
||||
--show-overrides --color --unpack-info --md5sums --checksums
|
||||
--allow-root --fail-on-warnings --keep-lab"
|
||||
configuration_opts="--cfg --lab --archivedir --dist --area --section --arch
|
||||
--root"
|
||||
selection_opts="--all --binary --source --udeb --packages-file"
|
||||
|
||||
if [[ "$prev" = -* ]]; then
|
||||
|
@ -126,8 +125,8 @@ _lintian()
|
|||
|
||||
case "$cur" in
|
||||
--*)
|
||||
COMPREPLY=($(compgen -W "$lint_actions $general_opts \
|
||||
$behaviour_opts $configuration_opts" -- "$cur"))
|
||||
COMPREPLY=($(compgen -W "$lint_actions $general_opts
|
||||
$behaviour_opts $configuration_opts" -- "$cur"))
|
||||
;;
|
||||
*,)
|
||||
# If we're here, the user is trying to complete on
|
||||
|
|
|
@ -9,8 +9,8 @@ _lisp()
|
|||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init \
|
||||
-dynamic-space-size -hinit -noinit -nositeinit -load -slave ' \
|
||||
COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init
|
||||
-dynamic-space-size -hinit -noinit -nositeinit -load -slave' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
|
|
@ -11,8 +11,8 @@ _list_lists()
|
|||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview \
|
||||
--bare --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview --bare
|
||||
--help' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
|
@ -11,12 +11,12 @@ _list_members()
|
|||
return 0
|
||||
;;
|
||||
-d|--digest)
|
||||
COMPREPLY=( $( compgen -W 'mime plain' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W 'mime plain' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-n|--nomail)
|
||||
COMPREPLY=( $( compgen -W 'byadmin byuser bybounce unknown' \
|
||||
-- "$cur") )
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@ -24,8 +24,8 @@ _list_members()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--output --regular --digest \
|
||||
--nomail --fullnames --preserve --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--output --regular --digest --nomail
|
||||
--fullnames --preserve --help' -- "$cur" ) )
|
||||
else
|
||||
_xfunc list_lists _mailman_lists
|
||||
fi
|
||||
|
|
|
@ -6,8 +6,8 @@ _list_owners()
|
|||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--with-listnames --moderators \
|
||||
--help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--with-listnames --moderators --help' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
_xfunc list_lists _mailman_lists
|
||||
fi
|
||||
|
|
|
@ -69,9 +69,9 @@ _pvscan()
|
|||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--debug --exported --novolumegroup \
|
||||
--help --ignorelockingfailure --partial --short --uuid \
|
||||
--verbose --version' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--debug --exported --novolumegroup --help
|
||||
--ignorelockingfailure --partial --short --uuid --verbose
|
||||
--version' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
complete -F _pvscan pvscan
|
||||
|
@ -83,10 +83,8 @@ _pvs()
|
|||
|
||||
case $prev in
|
||||
-o|-O|--options|--sort)
|
||||
COMPREPLY=( $( compgen -W 'pv_fmt pv_uuid \
|
||||
pv_size pv_free pv_used pv_name \
|
||||
pv_attr pv_pe_count \
|
||||
pv_pe_alloc_count' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'pv_fmt pv_uuid pv_size pv_free pv_used
|
||||
pv_name pv_attr pv_pe_count pv_pe_alloc_count' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--units)
|
||||
|
@ -191,9 +189,9 @@ _pvmove()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--abort --autobackup \
|
||||
--background --debug --force --help --interval --test --verbose \
|
||||
--version --name' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--abort --autobackup --background --debug
|
||||
--force --help --interval --test --verbose --version --name' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
_lvm_physicalvolumes
|
||||
fi
|
||||
|
@ -231,11 +229,10 @@ _vgs()
|
|||
|
||||
case $prev in
|
||||
-o|-O|--options|--sort)
|
||||
COMPREPLY=( $( compgen -W 'vg_fmt vg_uuid vg_name \
|
||||
vg_attr vg_size vg_free vg_sysid \
|
||||
vg_extent_size vg_extent_count vg_free_count \
|
||||
max_lv max_pv pv_count lv_count snap_count \
|
||||
vg_seqno' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'vg_fmt vg_uuid vg_name vg_attr vg_size
|
||||
vg_free vg_sysid vg_extent_size vg_extent_count vg_free_count
|
||||
max_lv max_pv pv_count lv_count snap_count vg_seqno' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--units)
|
||||
|
@ -285,11 +282,10 @@ _vgchange()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--autobackup --alloc \
|
||||
--partial --debug --help --ignorelockingfailure \
|
||||
--test --uuid --verbose --version \
|
||||
--available --resizeable --logicalvolume \
|
||||
--addtag --deltag' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--autobackup --alloc --partial --debug
|
||||
--help --ignorelockingfailure --test --uuid --verbose --version
|
||||
--available --resizeable --logicalvolume --addtag --deltag' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
_lvm_volumegroups
|
||||
fi
|
||||
|
@ -317,10 +313,9 @@ _vgcreate()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc \
|
||||
--debug --help --maxlogicalvolumes --metadatatype \
|
||||
--maxphysicalvolumes --physicalextentsize --test \
|
||||
--verbose --version' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc --debug --help
|
||||
--maxlogicalvolumes --metadatatype --maxphysicalvolumes
|
||||
--physicalextentsize --test --verbose --version' -- "$cur" ) )
|
||||
else
|
||||
local args
|
||||
_lvm_count_args @(-A|--autobackup|-M|--metadatatype|-s|--physicalextentsize)
|
||||
|
@ -562,9 +557,8 @@ _vgsplit()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--autobackup --debug \
|
||||
--help --list --metadatatype --test \
|
||||
--verbose --version' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--autobackup --debug --help --list
|
||||
--metadatatype --test --verbose --version' -- "$cur" ) )
|
||||
else
|
||||
local args
|
||||
_lvm_count_args @(-A|--autobackup|-M|--metadatatype)
|
||||
|
@ -608,9 +602,9 @@ _lvs()
|
|||
|
||||
case $prev in
|
||||
-o|-O|--options|--sort)
|
||||
COMPREPLY=( $( compgen -W 'lv_uuid lv_name lv_attr lv_minor \
|
||||
lv_size seg_count origin snap_percent segtype stripes \
|
||||
stripesize chunksize seg_start seg_size' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'lv_uuid lv_name lv_attr lv_minor lv_size
|
||||
seg_count origin snap_percent segtype stripes stripesize
|
||||
chunksize seg_start seg_size' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--units)
|
||||
|
@ -839,17 +833,13 @@ _lvm()
|
|||
_init_completion || return
|
||||
|
||||
if [[ $cword -eq 1 ]]; then
|
||||
COMPREPLY=( $( compgen -W 'dumpconfig help lvchange \
|
||||
lvcreate lvdisplay lvextend lvmchange \
|
||||
lvmdiskscan lvmsadc lvmsar lvreduce \
|
||||
lvremove lvrename lvresize lvs lvscan \
|
||||
pvchange pvcreate pvdata pvdisplay pvmove \
|
||||
pvremove pvresize pvs pvscan vgcfgbackup \
|
||||
vgcfgrestore vgchange vgck vgconvert \
|
||||
vgcreate vgdisplay vgexport vgextend \
|
||||
vgimport vgmerge vgmknodes vgreduce \
|
||||
vgremove vgrename vgs vgscan vgsplit \
|
||||
version' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'dumpconfig help lvchange lvcreate lvdisplay
|
||||
lvextend lvmchange lvmdiskscan lvmsadc lvmsar lvreduce lvremove
|
||||
lvrename lvresize lvs lvscan pvchange pvcreate pvdata pvdisplay
|
||||
pvmove pvremove pvresize pvs pvscan vgcfgbackup vgcfgrestore
|
||||
vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend
|
||||
vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgs vgscan
|
||||
vgsplit version' -- "$cur" ) )
|
||||
else
|
||||
case ${words[1]} in
|
||||
pvchange)
|
||||
|
|
|
@ -7,10 +7,10 @@ _lzma()
|
|||
_init_completion || return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 \
|
||||
--help --decompress --compress --keep --force --suffix \
|
||||
--test --stdout --quiet --verbose --license --list \
|
||||
--version --small --fast --best --text' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9
|
||||
--help --decompress --compress --keep --force --suffix --test
|
||||
--stdout --quiet --verbose --license --list --version --small
|
||||
--fast --best --text' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -20,13 +20,13 @@ _lzop()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 -P \
|
||||
--fast --best --decompress --extract --test --list --ls --info \
|
||||
--sysinfo --license --help --version --stdout --output --path \
|
||||
--force --no-checksum --no-name --name --no-mode --no-time \
|
||||
--suffix --keep --delete --crc32 --no-warn --ignore-warn --quiet \
|
||||
--verbose --no-stdin --filter --checksum --no-color --mono \
|
||||
--color' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 -P
|
||||
--fast --best --decompress --extract --test --list --ls --info
|
||||
--sysinfo --license --help --version --stdout --output --path
|
||||
--force --no-checksum --no-name --name --no-mode --no-time --suffix
|
||||
--keep --delete --crc32 --no-warn --ignore-warn --quiet --verbose
|
||||
--no-stdin --filter --checksum --no-color --mono --color' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ _mailmanctl()
|
|||
_init_completion || return
|
||||
|
||||
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" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'start stop restart reopen' -- "$cur" ) )
|
||||
|
|
|
@ -13,8 +13,8 @@ _makepkg()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-l --linkadd -p --prepend \
|
||||
-c --chown' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W '-l --linkadd -p --prepend -c --chown' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -19,13 +19,13 @@ _mdadm_raid_level()
|
|||
|
||||
case $mode in
|
||||
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' \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
build)
|
||||
COMPREPLY=( $( compgen -W 'linear stripe raid0 0 raid1 multipath \
|
||||
mp faulty' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'linear stripe raid0 0 raid1 multipath mp
|
||||
faulty' -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
@ -42,16 +42,16 @@ _mdadm_raid_layout()
|
|||
|
||||
case $level in
|
||||
raid5)
|
||||
COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric \
|
||||
COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric
|
||||
right-asymmetric right-symmetric la ra ls rs' -- "$cur" ) )
|
||||
;;
|
||||
raid10)
|
||||
COMPREPLY=( $( compgen -W 'n o p' -- "$cur" ) )
|
||||
;;
|
||||
faulty)
|
||||
COMPREPLY=( $( compgen -W 'write-transient wt read-transient rt \
|
||||
write-persistent wp read-persistent rp write-all read-fixable \
|
||||
rf clear flush none' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'write-transient wt read-transient rt
|
||||
write-persistent wp read-persistent rp write-all read-fixable
|
||||
rf clear flush none' -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ _mdadm_auto_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" ) )
|
||||
}
|
||||
|
||||
|
@ -98,45 +98,44 @@ _mdadm()
|
|||
|
||||
$split && return 0
|
||||
|
||||
local options
|
||||
options='--help --help-options --version --verbose --quiet \
|
||||
--brief --force --config= --scan --metadata= --homehost='
|
||||
local options='--help --help-options --version --verbose --quiet --brief
|
||||
--force --config= --scan --metadata= --homehost='
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
if [[ $cword -eq 1 ]] ; then
|
||||
COMPREPLY=( $( compgen -W "$options --assemble --build \
|
||||
--create --monitor --grow" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$options --assemble --build --create
|
||||
--monitor --grow" -- "$cur" ) )
|
||||
else
|
||||
case ${words[cword-1]} in
|
||||
-A|--assemble)
|
||||
COMPREPLY=( $( compgen -W "$options --uuid= \
|
||||
--super-minor= --name= --force --run \
|
||||
--no-degraded --auto= --bitmap= --backup-file= \
|
||||
--update= --auto-update-homehost" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$options --uuid= --super-minor=
|
||||
--name= --force --run --no-degraded --auto= --bitmap=
|
||||
--backup-file= --update= --auto-update-homehost" \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
-B|-C|-G|--build|--create|--grow)
|
||||
COMPREPLY=( $( compgen -W "$options --raid-devices= \
|
||||
--spare-devices= --size= --chunk= --rounding= \
|
||||
--level= --layout= --parity= --bitmap= \
|
||||
--bitmap-chunk= --write-mostly --write-behind= \
|
||||
--assume-clean --backup-file= --name= --run \
|
||||
--force --auto=" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$options --raid-devices=
|
||||
--spare-devices= --size= --chunk= --rounding= --level=
|
||||
--layout= --parity= --bitmap= --bitmap-chunk=
|
||||
--write-mostly --write-behind= --assume-clean
|
||||
--backup-file= --name= --run --force --auto=" \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
-F|--follow|--monitor)
|
||||
COMPREPLY=( $( compgen -W "$options --mail --program \
|
||||
--alert --syslog --delay --daemonise \
|
||||
--pid-file --oneshot --test" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$options --mail --program
|
||||
--alert --syslog --delay --daemonise --pid-file
|
||||
--oneshot --test" -- "$cur" ) )
|
||||
|
||||
;;
|
||||
/dev/*|--add|--fail|--remove)
|
||||
COMPREPLY=( $( compgen -W "$options --add --re-add \
|
||||
COMPREPLY=( $( compgen -W "$options --add --re-add
|
||||
--remove --fail --set-faulty" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W "$options --query --detail \
|
||||
--examine --sparc2.2 --examine-bitmap --run \
|
||||
--stop --readonly --readwrite \
|
||||
--zero-superblock --test" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$options --query --detail
|
||||
--examine --sparc2.2 --examine-bitmap --run --stop
|
||||
--readonly --readwrite --zero-superblock --test" \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
|
@ -42,9 +42,9 @@ _mdtool()
|
|||
;;
|
||||
"setup")
|
||||
# TODO: at least return filenames after these options.
|
||||
COMPREPLY=( $( compgen -W 'install i uninstall u check-install \
|
||||
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 \
|
||||
COMPREPLY=( $( compgen -W 'install i uninstall u check-install
|
||||
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
|
||||
reg-build rgu info rep-build rb pack p help h dump-file' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
|
@ -52,7 +52,7 @@ _mdtool()
|
|||
esac
|
||||
fi
|
||||
|
||||
COMPREPLY=( $( compgen -W 'gsetup build dbgen project-export \
|
||||
COMPREPLY=( $( compgen -W 'gsetup build dbgen project-export
|
||||
generate-makefiles gettext-update setup -q' -- "$cur" ) )
|
||||
|
||||
return 0
|
||||
|
|
|
@ -7,9 +7,8 @@ _mii_diag()
|
|||
|
||||
case $prev in
|
||||
-F|-A|--advertise|--fixed-speed)
|
||||
COMPREPLY=( $( compgen -W '100baseT4 100baseTx \
|
||||
100baseTx-FD 100baseTx-HD 10baseT 10baseT-FD \
|
||||
10baseT-HD' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '100baseT4 100baseTx 100baseTx-FD
|
||||
100baseTx-HD 10baseT 10baseT-FD 10baseT-HD' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -7,12 +7,12 @@ _mii_tool()
|
|||
|
||||
case $prev in
|
||||
-F|--force)
|
||||
COMPREPLY=( $( compgen -W '100baseTx-FD 100baseTx-HD \
|
||||
10baseT-FD 10baseT-HD' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '100baseTx-FD 100baseTx-HD 10baseT-FD
|
||||
10baseT-HD' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-A|--advertise)
|
||||
COMPREPLY=( $( compgen -W '100baseT4 100baseTx-FD 100baseTx-HD \
|
||||
COMPREPLY=( $( compgen -W '100baseT4 100baseTx-FD 100baseTx-HD
|
||||
10baseT-FD 10baseT-HD' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
|
|
|
@ -24,8 +24,8 @@ _minicom()
|
|||
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-s -o -m -M -z -l -L -w -a -t \
|
||||
-c -S -d -p -C -T -7 -8' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-s -o -m -M -z -l -L -w -a -t -c -S -d -p -C
|
||||
-T -7 -8' -- "$cur" ) )
|
||||
return 0
|
||||
else
|
||||
local confdir
|
||||
|
|
|
@ -224,7 +224,7 @@ _mplayer()
|
|||
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-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
|
||||
;;
|
||||
-tv)
|
||||
|
|
|
@ -32,10 +32,10 @@ _msynctool()
|
|||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( compgen -W '--listgroups --listplugins --listobjects \
|
||||
--showformats --showgroup --sync --filter-objtype --slow-sync \
|
||||
--wait --multi --addgroup --delgroup --addmember --configure \
|
||||
--manual --configdir --conflict' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--listgroups --listplugins --listobjects
|
||||
--showformats --showgroup --sync --filter-objtype --slow-sync --wait
|
||||
--multi --addgroup --delgroup --addmember --configure --manual
|
||||
--configdir --conflict' -- "$cur" ) )
|
||||
} &&
|
||||
complete -F _msynctool msynctool
|
||||
|
||||
|
|
|
@ -17,9 +17,9 @@ _munin_update()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--force-root --[no]force-root \
|
||||
--service --host --config --help --debug --nodebug \
|
||||
--fork --nofork --stdout --nostdout --timeout' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--force-root --noforce-root --service --host
|
||||
--config --help --debug --nodebug --fork --nofork --stdout
|
||||
--nostdout --timeout' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
complete -F _munin_update munin-update
|
||||
|
|
|
@ -143,8 +143,8 @@ _mutt()
|
|||
|
||||
case $cur in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n \
|
||||
-p -Q -R -s -v -x -y -z -Z -h' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n -p -Q -R -s
|
||||
-v -x -y -z -Z -h' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -42,10 +42,9 @@ _mysqladmin()
|
|||
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
|
||||
COMPREPLY+=( \
|
||||
$( compgen -W 'create debug drop extended-status flush-hosts \
|
||||
flush-logs flush-status flush-tables flush-threads flush-privileges \
|
||||
kill password old-password ping processlist reload refresh shutdown \
|
||||
COMPREPLY+=( $( compgen -W 'create debug drop extended-status flush-hosts
|
||||
flush-logs flush-status flush-tables flush-threads flush-privileges
|
||||
kill password old-password ping processlist reload refresh shutdown
|
||||
status start-slave stop-slave variables version' -- "$cur" ) )
|
||||
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
|
|
|
@ -25,22 +25,22 @@ _nmap()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-iL -iR --exclude --excludefile -sL -sP \
|
||||
-PN -PS -PA -PU -PY -PE -PP -PM -PO -n -R --dns-servers \
|
||||
--system-dns --traceroute -sS -sT -sA -sW -sM -sU -sN -sF -sX \
|
||||
--scanflags -sI -sY -sZ -sO -b -p -F -r --top-ports --port-ratio \
|
||||
-sV --version-intensity --version-light --version-all \
|
||||
--version-trace -sC --script= --script-args= --script-trace \
|
||||
--script-updatedb -O --osscan-limit --osscan-guess -T0 -T1 -T2 -T3 \
|
||||
-T4 -T5 --min-hostgroup --max-hostgroup --min-parallelism \
|
||||
--max-parallelism --min-rtt-timeout --max-rtt-timeout \
|
||||
--initial-rtt-timeout --max-retries --host-timeout --scan-delay \
|
||||
--max-scan-delay --min-rate --max-rate -f --mtu -D -S -e \
|
||||
--source-port --data-length --ip-options --ttl --spoof-mac \
|
||||
--badsum --adler32 -oN -oX -oS -oG -oA -v -d --reason --open \
|
||||
--packet-trace --iflist --log-errors --append-output --resume \
|
||||
--stylesheet --webxml --no-stylesheet -6 -A --datadir --send-eth \
|
||||
--send-ip --privilege--unprivileged -V -h' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-iL -iR --exclude --excludefile -sL -sP -PN
|
||||
-PS -PA -PU -PY -PE -PP -PM -PO -n -R --dns-servers --system-dns
|
||||
--traceroute -sS -sT -sA -sW -sM -sU -sN -sF -sX --scanflags -sI
|
||||
-sY -sZ -sO -b -p -F -r --top-ports --port-ratio -sV
|
||||
--version-intensity --version-light --version-all --version-trace
|
||||
-sC --script= --script-args= --script-trace --script-updatedb -O
|
||||
--osscan-limit --osscan-guess -T0 -T1 -T2 -T3 -T4 -T5
|
||||
--min-hostgroup --max-hostgroup --min-parallelism --max-parallelism
|
||||
--min-rtt-timeout --max-rtt-timeout --initial-rtt-timeout
|
||||
--max-retries --host-timeout --scan-delay --max-scan-delay
|
||||
--min-rate --max-rate -f --mtu -D -S -e --source-port --data-length
|
||||
--ip-options --ttl --spoof-mac --badsum --adler32 -oN -oX -oS -oG
|
||||
-oA -v -d --reason --open --packet-trace --iflist --log-errors
|
||||
--append-output --resume --stylesheet --webxml --no-stylesheet -6
|
||||
-A --datadir --send-eth --send-ip --privilege--unprivileged -V
|
||||
-h' -- "$cur" ) )
|
||||
else
|
||||
_known_hosts_real "$cur"
|
||||
fi
|
||||
|
|
|
@ -2,33 +2,33 @@
|
|||
|
||||
_nmcli_list()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W '$1' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '$1' -- "$cur" ) )
|
||||
}
|
||||
|
||||
_nmcli_con_id()
|
||||
{
|
||||
local IFS=$'\n'
|
||||
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()
|
||||
{
|
||||
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()
|
||||
{
|
||||
local IFS=$'\n'
|
||||
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()
|
||||
{
|
||||
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()
|
||||
|
@ -38,11 +38,11 @@ _nmcli()
|
|||
|
||||
case $prev in
|
||||
-m|--mode)
|
||||
COMPREPLY=( $( compgen -W 'tabular multiline' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'tabular multiline' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-f|--fields)
|
||||
COMPREPLY=( $( compgen -W 'all common' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'all common' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-e|--escape)
|
||||
|
@ -73,10 +73,10 @@ _nmcli()
|
|||
|
||||
if [[ $cword -eq 1 ]] ; then
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--terse --pretty --mode --fields \
|
||||
--escape --version --help' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '--terse --pretty --mode --fields
|
||||
--escape --version --help' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W "nm con dev" -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W "nm con dev" -- "$cur" ) )
|
||||
fi
|
||||
else
|
||||
local object=${words[1]}
|
||||
|
@ -107,50 +107,50 @@ _nmcli()
|
|||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( compgen -W 'status permissions enable sleep \
|
||||
wifi wwan wimax' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'status permissions enable sleep
|
||||
wifi wwan wimax' -- "$cur" ) )
|
||||
;;
|
||||
con)
|
||||
case $command in
|
||||
list)
|
||||
COMPREPLY=( $( compgen -W 'id uuid' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'id uuid' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
up)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--nowait --timeout' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'id uuid iface ap nsp' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
down)
|
||||
COMPREPLY=( $( compgen -W 'id uuid' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'id uuid' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
delete)
|
||||
COMPREPLY=( $( compgen -W 'id uuid' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'id uuid' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( compgen -W 'list status up down delete' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
dev)
|
||||
case $command in
|
||||
list)
|
||||
COMPREPLY=( $( compgen -W 'iface' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'iface' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
disconnect)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--nowait --timeout' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'iface' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'iface' -- "$cur" ) )
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
|
@ -160,33 +160,33 @@ _nmcli()
|
|||
case $subcommand in
|
||||
list)
|
||||
COMPREPLY=( $( compgen -W 'iface bssid' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
connect)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--private \
|
||||
--nowait --timeout' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W '--private
|
||||
--nowait --timeout' -- "$cur" ) )
|
||||
else
|
||||
if [[ "$prev" == "connect" ]]; then
|
||||
_nmcli_ap_ssid
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'password \
|
||||
COMPREPLY=( $( compgen -W 'password
|
||||
wep-key-type iface bssid name' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( compgen -W 'list connect' -- $cur ) )
|
||||
COMPREPLY=( $( compgen -W 'list connect' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( compgen -W 'status list disconnect wifi' \
|
||||
-- $cur ) )
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -33,20 +33,17 @@ _openssl()
|
|||
|
||||
local commands command options formats
|
||||
|
||||
commands='asn1parse ca ciphers crl crl2pkcs7 dgst dh dhparam dsa \
|
||||
dsaparam ec ecparam enc engine errstr gendh gendsa genrsa \
|
||||
nseq ocsp passwd pkcs12 pkcs7 pkcs8 prime rand req rsa \
|
||||
rsautl s_client s_server s_time sess_id smime speed spkac \
|
||||
verify version x509 md2 md4 md5 rmd160 sha sha1 aes-128-cbc \
|
||||
aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc aes-256-ecb \
|
||||
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-256-ecb cast cast-cbc cast5-cbc \
|
||||
cast5-cfb cast5-ecb cast5-ofb des des-cbc des-cfb des-ecb \
|
||||
des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ede3 \
|
||||
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'
|
||||
commands='asn1parse ca ciphers crl crl2pkcs7 dgst dh dhparam dsa dsaparam
|
||||
ec ecparam enc engine errstr gendh gendsa genrsa nseq ocsp passwd
|
||||
pkcs12 pkcs7 pkcs8 prime rand req rsa rsautl s_client s_server s_time
|
||||
sess_id smime speed spkac verify version x509 md2 md4 md5 rmd160 sha
|
||||
sha1 aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc
|
||||
aes-256-ecb 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-256-ecb cast cast-cbc cast5-cbc cast5-cfb cast5-ecb cast5-ofb
|
||||
des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb
|
||||
des-ede3 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
|
||||
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
|
||||
|
@ -69,7 +66,8 @@ _openssl()
|
|||
_openssl_sections
|
||||
return 0
|
||||
;;
|
||||
-inform|-outform|-keyform|-certform|-CAform|-CAkeyform|-dkeyform|-dcertform)
|
||||
-inform|-outform|-keyform|-certform|-CAform|-CAkeyform|-dkeyform|\
|
||||
-dcertform)
|
||||
formats='DER PEM'
|
||||
case $command in
|
||||
x509)
|
||||
|
@ -87,8 +85,7 @@ _openssl()
|
|||
return 0
|
||||
;;
|
||||
-starttls)
|
||||
COMPREPLY=( $( compgen -W 'smtp pop3 imap ftp' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'smtp pop3 imap ftp' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-cipher)
|
||||
|
@ -102,48 +99,47 @@ _openssl()
|
|||
# possible options for the command
|
||||
case $command in
|
||||
asn1parse)
|
||||
options='-inform -in -out -noout -offset -length -i -oid \
|
||||
options='-inform -in -out -noout -offset -length -i -oid
|
||||
-strparse'
|
||||
;;
|
||||
ca)
|
||||
options='-verbose -config -name -gencrl -revoke \
|
||||
-crl_reason -crl_hold -crl_compromise \
|
||||
-crl_CA_compromise -crldays -crlhours -crlexts \
|
||||
-startdate -enddate -days -md -policy -keyfile -key \
|
||||
-passin -cert -selfsig -in -out -notext -outdir \
|
||||
-infiles -spkac -ss_cert -preserveDN -noemailDN \
|
||||
-batch -msie_hack -extensions -extfile -engine \
|
||||
-subj -utf8 -multivalue-rdn'
|
||||
options='-verbose -config -name -gencrl -revoke -crl_reason
|
||||
-crl_hold -crl_compromise -crl_CA_compromise -crldays
|
||||
-crlhours -crlexts -startdate -enddate -days -md
|
||||
-policy -keyfile -key -passin -cert -selfsig -in -out
|
||||
-notext -outdir -infiles -spkac -ss_cert -preserveDN
|
||||
-noemailDN -batch -msie_hack -extensions -extfile
|
||||
-engine -subj -utf8 -multivalue-rdn'
|
||||
;;
|
||||
ciphers)
|
||||
options='-v -ssl2 -ssl3 -tls1'
|
||||
;;
|
||||
crl)
|
||||
options='-inform -outform -text -in -out -noout -hash \
|
||||
options='-inform -outform -text -in -out -noout -hash
|
||||
-issuer -lastupdate -nextupdate -CAfile -CApath'
|
||||
;;
|
||||
crl2pkcs7)
|
||||
options='-inform -outform -in -out -print_certs'
|
||||
;;
|
||||
dgst)
|
||||
options='-md5 -md4 -md2 -sha1 -sha -mdc2 -ripemd160 -dss1 \
|
||||
-c -d -hex -binary -out -sign -verify -prverify \
|
||||
options='-md5 -md4 -md2 -sha1 -sha -mdc2 -ripemd160 -dss1
|
||||
-c -d -hex -binary -out -sign -verify -prverify
|
||||
-signature'
|
||||
;;
|
||||
dsa)
|
||||
options='-inform -outform -in -passin -out -passout -des \
|
||||
options='-inform -outform -in -passin -out -passout -des
|
||||
-des3 -idea -text -noout -modulus -pubin -pubout'
|
||||
;;
|
||||
dsaparam)
|
||||
options='-inform -outform -in -out -noout -text -C -rand \
|
||||
options='-inform -outform -in -out -noout -text -C -rand
|
||||
-genkey'
|
||||
;;
|
||||
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'
|
||||
;;
|
||||
dhparam)
|
||||
options='-inform -outform -in -out -dsaparam -noout -text \
|
||||
options='-inform -outform -in -out -dsaparam -noout -text
|
||||
-C -2 -5 -rand'
|
||||
;;
|
||||
gendsa)
|
||||
|
@ -153,75 +149,74 @@ _openssl()
|
|||
options='-out -passout -des -des3 -idea -f4 -3 -rand'
|
||||
;;
|
||||
pkcs7)
|
||||
options='-inform -outform -in -out -print_certs -text \
|
||||
options='-inform -outform -in -out -print_certs -text
|
||||
-noout'
|
||||
;;
|
||||
rand)
|
||||
options='-out -rand -base64'
|
||||
;;
|
||||
req)
|
||||
options='-inform -outform -in -passin -out -passout -text \
|
||||
-noout -verify -modulus -new -rand -newkey -newkey \
|
||||
-nodes -key -keyform -keyout -md5 -sha1 -md2 -mdc2 \
|
||||
-config -x509 -days -asn1-kludge -newhdr -extensions \
|
||||
options='-inform -outform -in -passin -out -passout -text
|
||||
-noout -verify -modulus -new -rand -newkey -newkey
|
||||
-nodes -key -keyform -keyout -md5 -sha1 -md2 -mdc2
|
||||
-config -x509 -days -asn1-kludge -newhdr -extensions
|
||||
-reqexts section'
|
||||
;;
|
||||
rsa)
|
||||
options='-inform -outform -in -passin -out -passout \
|
||||
-sgckey -des -des3 -idea -text -noout -modulus -check \
|
||||
options='-inform -outform -in -passin -out -passout
|
||||
-sgckey -des -des3 -idea -text -noout -modulus -check
|
||||
-pubin -pubout -engine'
|
||||
;;
|
||||
rsautl)
|
||||
options='-in -out -inkey -pubin -certin -sign -verify \
|
||||
options='-in -out -inkey -pubin -certin -sign -verify
|
||||
-encrypt -decrypt -pkcs -ssl -raw -hexdump -asn1parse'
|
||||
;;
|
||||
s_client)
|
||||
options='-connect -verify -cert -certform -key -keyform \
|
||||
-pass -CApath -CAfile -reconnect -pause -showcerts \
|
||||
-debug -msg -nbio_test -state -nbio -crlf -ign_eof \
|
||||
-quiet -ssl2 -ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 \
|
||||
-bugs -cipher -starttls -engine -tlsextdebug \
|
||||
options='-connect -verify -cert -certform -key -keyform
|
||||
-pass -CApath -CAfile -reconnect -pause -showcerts
|
||||
-debug -msg -nbio_test -state -nbio -crlf -ign_eof
|
||||
-quiet -ssl2 -ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1
|
||||
-bugs -cipher -starttls -engine -tlsextdebug
|
||||
-no_ticket -sess_out -sess_in -rand'
|
||||
;;
|
||||
s_server)
|
||||
options='-accept -context -verify -Verify -crl_check \
|
||||
-crl_check_all -cert -certform -key -keyform -pass \
|
||||
-dcert -dcertform -dkey -dkeyform -dpass -dhparam \
|
||||
-nbio -nbio_test -crlf -debug -msg -state -CApath \
|
||||
-CAfile -nocert -cipher -quiet -no_tmp_rsa -ssl2 \
|
||||
-ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 -no_dhe \
|
||||
-bugs -hack -www -WWW -HTTP -engine -tlsextdebug \
|
||||
options='-accept -context -verify -Verify -crl_check
|
||||
-crl_check_all -cert -certform -key -keyform -pass
|
||||
-dcert -dcertform -dkey -dkeyform -dpass -dhparam
|
||||
-nbio -nbio_test -crlf -debug -msg -state -CApath
|
||||
-CAfile -nocert -cipher -quiet -no_tmp_rsa -ssl2
|
||||
-ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 -no_dhe
|
||||
-bugs -hack -www -WWW -HTTP -engine -tlsextdebug
|
||||
-no_ticket -id_prefix -rand'
|
||||
;;
|
||||
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'
|
||||
;;
|
||||
sess_id)
|
||||
options='-inform -outform -in -out -text -noout -context \
|
||||
ID'
|
||||
options='-inform -outform -in -out -text -noout -context ID'
|
||||
;;
|
||||
smime)
|
||||
options='-encrypt -decrypt -sign -verify -pk7out -des \
|
||||
-des3 -rc2-40 -rc2-64 -rc2-128 -aes128 -aes192 -aes256 \
|
||||
-in -certfile -signer -recip -inform -passin -inkey \
|
||||
-out -outform -content -to -from -subject -text -rand'
|
||||
options='-encrypt -decrypt -sign -verify -pk7out -des -des3
|
||||
-rc2-40 -rc2-64 -rc2-128 -aes128 -aes192 -aes256 -in
|
||||
-certfile -signer -recip -inform -passin -inkey -out
|
||||
-outform -content -to -from -subject -text -rand'
|
||||
;;
|
||||
speed)
|
||||
options='-engine'
|
||||
;;
|
||||
verify)
|
||||
options='-CApath -CAfile -purpose -untrusted -help \
|
||||
options='-CApath -CAfile -purpose -untrusted -help
|
||||
-issuer_checks -verbose -certificates'
|
||||
;;
|
||||
x509)
|
||||
options='-inform -outform -keyform -CAform -CAkeyform -in \
|
||||
-out -serial -hash -subject_hash -issuer_hash -subject \
|
||||
-issuer -nameopt -email -startdate -enddate -purpose \
|
||||
-dates -modulus -fingerprint -alias -noout -trustout \
|
||||
-clrtrust -clrreject -addtrust -addreject -setalias \
|
||||
-days -set_serial -signkey -x509toreq -req -CA -CAkey \
|
||||
-CAcreateserial -CAserial -text -C -md2 -md5 -sha1 \
|
||||
options='-inform -outform -keyform -CAform -CAkeyform -in
|
||||
-out -serial -hash -subject_hash -issuer_hash -subject
|
||||
-issuer -nameopt -email -startdate -enddate -purpose
|
||||
-dates -modulus -fingerprint -alias -noout -trustout
|
||||
-clrtrust -clrreject -addtrust -addreject -setalias
|
||||
-days -set_serial -signkey -x509toreq -req -CA -CAkey
|
||||
-CAcreateserial -CAserial -text -C -md2 -md5 -sha1
|
||||
-mdc2 -clrext -extfile -extensions -engine'
|
||||
;;
|
||||
md5|md4|md2|sha1|sha|mdc2|ripemd160)
|
||||
|
@ -231,9 +226,9 @@ _openssl()
|
|||
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||
else
|
||||
if [[ "$command" == speed ]]; then
|
||||
COMPREPLY=( $( compgen -W 'md2 mdc2 md5 hmac sha1 rmd160 \
|
||||
idea-cbc rc2-cbc rc5-cbc bf-cbc des-cbc des-ede3 rc4 \
|
||||
rsa512 rsa1024 rsa2048 rsa4096 dsa512 dsa1024 dsa2048 idea \
|
||||
COMPREPLY=( $( compgen -W 'md2 mdc2 md5 hmac sha1 rmd160
|
||||
idea-cbc rc2-cbc rc5-cbc bf-cbc des-cbc des-ede3 rc4
|
||||
rsa512 rsa1024 rsa2048 rsa4096 dsa512 dsa1024 dsa2048 idea
|
||||
rc2 des rsa blowfish' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
|
|
@ -19,9 +19,9 @@ _p4()
|
|||
elif [[ $cword -eq 2 ]]; then
|
||||
case $prev in
|
||||
help)
|
||||
COMPREPLY=( $( compgen -W "simple commands \
|
||||
environment filetypes jobview revisions \
|
||||
usage views $p4commands" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "simple commands environment
|
||||
filetypes jobview revisions usage views $p4commands" \
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
admin)
|
||||
COMPREPLY=( $( compgen -W "checkpoint stop" -- "$cur" ) )
|
||||
|
@ -34,7 +34,7 @@ _p4()
|
|||
-t)
|
||||
case ${words[$cword-2]} in
|
||||
add|edit|reopen)
|
||||
COMPREPLY=( $( compgen -W "$p4filetypes" -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W "$p4filetypes" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
|
|
@ -55,13 +55,12 @@ _pack200()
|
|||
|
||||
if ! $pack ; then
|
||||
if [[ "$cur" == -* ]] ; then
|
||||
COMPREPLY=( $( compgen -W '--no-gzip --gzip --strip-debug \
|
||||
--no-keep-file-order --segment-limit= --effort= \
|
||||
--deflate-hint= --modification-time= --pass-file= \
|
||||
--unknown-attribute= --class-attribute= --field-attribute= \
|
||||
--method-attribute= --code-attribute= --config-file= \
|
||||
--verbose --quiet --log-file= --help --version -J \
|
||||
--repack' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--no-gzip --gzip --strip-debug
|
||||
--no-keep-file-order --segment-limit= --effort= --deflate-hint=
|
||||
--modification-time= --pass-file= --unknown-attribute=
|
||||
--class-attribute= --field-attribute= --method-attribute=
|
||||
--code-attribute= --config-file= --verbose --quiet --log-file=
|
||||
--help --version -J --repack' -- "$cur" ) )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
else
|
||||
_filedir 'pack?(.gz)'
|
||||
|
|
|
@ -73,8 +73,8 @@ _perl()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-C -s -T -u -U -W -X -h -v -V -c -w -d \
|
||||
-D -p -n -a -F -l -0 -I -m -M -P -S -x -i -e ' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-C -s -T -u -U -W -X -h -v -V -c -w -d -D -p
|
||||
-n -a -F -l -0 -I -m -M -P -S -x -i -e' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
|
|
@ -25,7 +25,7 @@ _pkgtool()
|
|||
esac
|
||||
|
||||
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' \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
|
|
|
@ -21,7 +21,7 @@ _postfix()
|
|||
return 0
|
||||
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" ) )
|
||||
} &&
|
||||
complete -F _postfix postfix
|
||||
|
|
|
@ -95,7 +95,7 @@ _puppet()
|
|||
command=apply
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W 'agent apply cert describe doc \
|
||||
COMPREPLY=( $( compgen -W 'agent apply cert describe doc
|
||||
filebucket kick master queue resource' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
|
@ -114,7 +114,7 @@ _puppet()
|
|||
;;
|
||||
--serve)
|
||||
# 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" ) )
|
||||
return 0
|
||||
;;
|
||||
|
@ -127,10 +127,10 @@ _puppet()
|
|||
return 0
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W '--daemonize --no-daemonize \
|
||||
--debug --detailed-exitcodes --disable --enable \
|
||||
--help --fqdn --logdest --onetime --serve --test \
|
||||
--noop --digest --fingerprint --version --verbose \
|
||||
COMPREPLY=( $( compgen -W '--daemonize --no-daemonize
|
||||
--debug --detailed-exitcodes --disable --enable --help
|
||||
--fqdn --logdest --onetime --serve --test --noop
|
||||
--digest --fingerprint --version --verbose
|
||||
--waitforcert --no-client' -- "$cur" ) )
|
||||
return 0
|
||||
esac
|
||||
|
@ -143,8 +143,8 @@ _puppet()
|
|||
;;
|
||||
*)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --version --debug \
|
||||
--verbose --execute --detailed-exitcodes \
|
||||
COMPREPLY=( $( compgen -W '--help --version --debug
|
||||
--verbose --execute --detailed-exitcodes
|
||||
--logdest' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
@ -182,8 +182,8 @@ _puppet()
|
|||
return 0
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W '--clean --generate \
|
||||
--help --list --print --fingerprint --revoke \
|
||||
COMPREPLY=( $( compgen -W '--clean --generate
|
||||
--help --list --print --fingerprint --revoke
|
||||
--sign --version --verify' -- "$cur" ) )
|
||||
return 0
|
||||
esac
|
||||
|
@ -191,7 +191,7 @@ _puppet()
|
|||
;;
|
||||
describe)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --short --providers --list \
|
||||
COMPREPLY=( $( compgen -W '--help --short --providers --list
|
||||
--meta' -- "$cur" ) )
|
||||
else
|
||||
_puppet_types
|
||||
|
@ -214,7 +214,7 @@ _puppet()
|
|||
;;
|
||||
*)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--all --help --outputdir \
|
||||
COMPREPLY=( $( compgen -W '--all --help --outputdir
|
||||
--mode --reference --charset --list' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
@ -234,9 +234,9 @@ _puppet()
|
|||
;;
|
||||
*)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --version --debug \
|
||||
COMPREPLY=( $( compgen -W '--help --version --debug
|
||||
--verbose --local --remote --server --bucket' \
|
||||
-- "$cur" ) )
|
||||
-- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -W 'backup get restore' \
|
||||
-- "$cur" ) )
|
||||
|
@ -259,8 +259,8 @@ _puppet()
|
|||
;;
|
||||
*)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--all --class --debug \
|
||||
--foreground --help --host --no-fqdn \
|
||||
COMPREPLY=( $( compgen -W '--all --class --debug
|
||||
--foreground --help --host --no-fqdn
|
||||
--ignoreschedules --tag --test --ping' -- "$cur" ) )
|
||||
else
|
||||
_known_hosts_real "$cur"
|
||||
|
@ -275,9 +275,9 @@ _puppet()
|
|||
return 0
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W '--daemonize --no-daemonize \
|
||||
COMPREPLY=( $( compgen -W '--daemonize --no-daemonize
|
||||
--debug --help --logdest --verbose --version' \
|
||||
-- "$cur" ) )
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
esac
|
||||
;;
|
||||
|
@ -289,8 +289,8 @@ _puppet()
|
|||
;;
|
||||
*)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --version --debug \
|
||||
--verbose --execute --detailed-exitcodes \
|
||||
COMPREPLY=( $( compgen -W '--help --version --debug
|
||||
--verbose --execute --detailed-exitcodes
|
||||
--logdest' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
|
|
@ -20,9 +20,9 @@ _qemu()
|
|||
return 0
|
||||
;;
|
||||
-k)
|
||||
COMPREPLY=( $( compgen -W 'ar de-ch es fo fr-ca hu ja \
|
||||
mk no pt-br sv da en-gb et fr fr-ch is lt nl pl\
|
||||
ru th de en-us fi fr-be hr it lv nl-be pt sl tr' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'ar de-ch es fo fr-ca hu ja mk no pt-br
|
||||
sv da en-gb et fr fr-ch is lt nl pl ru th de en-us fi fr-be hr
|
||||
it lv nl-be pt sl tr' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-soundhw)
|
||||
|
@ -41,8 +41,8 @@ _qemu()
|
|||
return 0
|
||||
;;
|
||||
-usbdevice)
|
||||
COMPREPLY=( $( compgen -W 'mouse tablet disk: host: \
|
||||
serial: braille net' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'mouse tablet disk: host: serial: braille
|
||||
net' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-net)
|
||||
|
@ -51,9 +51,8 @@ _qemu()
|
|||
return 0
|
||||
;;
|
||||
-serial|-parallel|-monitor)
|
||||
COMPREPLY=( $( compgen -W 'vc pty none null /dev/ \
|
||||
file: stdio pipe: COM udp: tcp: telnet: unix: \
|
||||
mon: braille' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'vc pty none null /dev/ file: stdio pipe:
|
||||
COM udp: tcp: telnet: unix: mon: braille' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-redir)
|
||||
|
@ -70,8 +69,8 @@ _qemu()
|
|||
return 0
|
||||
;;
|
||||
-drive)
|
||||
COMPREPLY=( $( compgen -S"=" -W 'file if bus unit index media \
|
||||
cyls snapshot cache format serial addr' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -S"=" -W 'file if bus unit index media cyls
|
||||
snapshot cache format serial addr' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-ballon)
|
||||
|
@ -88,7 +87,7 @@ _qemu()
|
|||
return 0
|
||||
;;
|
||||
-watchdog-action)
|
||||
COMPREPLY=( $( compgen -W 'reset shutdown poweroff pause debug \
|
||||
COMPREPLY=( $( compgen -W 'reset shutdown poweroff pause debug
|
||||
none' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
|
|
|
@ -8,8 +8,8 @@ _qrunner()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--runner --once \
|
||||
--list --verbose --subproc --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--runner --once --list --verbose --subproc
|
||||
--help' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
|
@ -8,27 +8,25 @@ _querybts()
|
|||
case $prev in
|
||||
-B|--bts)
|
||||
COMPREPLY=( $( compgen -W "debian guug kde mandrake help" \
|
||||
-- "$cur" ))
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-u|--ui|--interface)
|
||||
COMPREPLY=($( compgen -W "newt text gnome" -- "$cur" ))
|
||||
COMPREPLY=( $( compgen -W "newt text gnome" -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
$split && return 0
|
||||
|
||||
COMPREPLY=($( compgen -W '-h --help -v --version -A --archive \
|
||||
-B --bts -l --ldap --no-ldap --proxy --http_proxy \
|
||||
-s --source -w --web -u --ui --interface \
|
||||
wnpp boot-floppies kernel bugs.debian.org \
|
||||
cdimage.debian.org general installation-reports \
|
||||
listarchives lists.debian.org mirrors nm.debian.org \
|
||||
press project qa.debian.org release-notes \
|
||||
security.debian.org tech-ctte upgrade-reports \
|
||||
www.debian.org' -- "$cur" ) \
|
||||
$( apt-cache pkgnames -- "$cur" 2> /dev/null) )
|
||||
COMPREPLY=( $( compgen -W '-h --help -v --version -A --archive -B --bts -l
|
||||
--ldap --no-ldap --proxy --http_proxy -s --source -w --web -u --ui
|
||||
--interface \
|
||||
wnpp boot-floppies kernel bugs.debian.org cdimage.debian.org general
|
||||
installation-reports listarchives lists.debian.org mirrors
|
||||
nm.debian.org press project qa.debian.org release-notes
|
||||
security.debian.org tech-ctte upgrade-reports www.debian.org' \
|
||||
-- "$cur" ) $( apt-cache pkgnames -- "$cur" 2> /dev/null ) )
|
||||
} &&
|
||||
complete -F _querybts querybts
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ _rdesktop()
|
|||
*:*)
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W 'comport: disk: lptport: \
|
||||
COMPREPLY=( $( compgen -W 'comport: disk: lptport:
|
||||
printer: sound: lspci scard' -- "$cur" ) )
|
||||
[[ $COMPREPLY == *: ]] && compopt -o nospace
|
||||
;;
|
||||
|
|
|
@ -15,7 +15,7 @@ _remove_members()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--file --all --fromall --nouserack \
|
||||
COMPREPLY=( $( compgen -W '--file --all --fromall --nouserack
|
||||
--noadminack --help' -- "$cur" ) )
|
||||
else
|
||||
_xfunc list_lists _mailman_lists
|
||||
|
|
|
@ -12,11 +12,11 @@ _reportbug()
|
|||
;;
|
||||
-B|--bts)
|
||||
COMPREPLY=( $( compgen -W "debian guug kde mandrake help" -- \
|
||||
"$cur" ))
|
||||
"$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-e|--editor|--mua)
|
||||
words=(words[0] "$cur")
|
||||
words=( words[0] "$cur" )
|
||||
cword=1
|
||||
_command
|
||||
return 0
|
||||
|
@ -26,8 +26,8 @@ _reportbug()
|
|||
return 0
|
||||
;;
|
||||
-S|--severity)
|
||||
COMPREPLY=( $( compgen -W "grave serious important normal \
|
||||
minor wishlist" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "grave serious important normal minor
|
||||
wishlist" -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-u|--ui|--interface)
|
||||
|
@ -39,12 +39,11 @@ _reportbug()
|
|||
return 0
|
||||
;;
|
||||
-T|--tag)
|
||||
COMPREPLY=( $( compgen -W "none \
|
||||
woody potato sarge sarge-ignore etch etch-ignore \
|
||||
lenny lenny-ignore sid experimental confirmed \
|
||||
d-i fixed fixed-in-experimental fixed-upstream \
|
||||
help l10n moreinfo patch pending security \
|
||||
unreproducible upstream wontfix ipv6 lfs" -- "$cur" ))
|
||||
COMPREPLY=( $( compgen -W "none woody potato sarge sarge-ignore
|
||||
etch etch-ignore lenny lenny-ignore sid experimental confirmed
|
||||
d-i fixed fixed-in-experimental fixed-upstream help l10n
|
||||
moreinfo patch pending security unreproducible upstream wontfix
|
||||
ipv6 lfs" -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--from-buildd)
|
||||
|
@ -56,28 +55,25 @@ _reportbug()
|
|||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=($( compgen -W '--help --version --attach \
|
||||
--no-query-bts --query-bts --bts --body --body-file --bodyfile \
|
||||
--no-config-files --class --configure --check-available --debug \
|
||||
--no-check-available --debconf --test --draftpath --editor --email \
|
||||
--exit-prompt --filename --from-buildd --gnupg --gpg --path --gnus \
|
||||
--header --include --no-check-installed --check-installed \
|
||||
--justification --kudos --keyid --license --list-cc \
|
||||
--maintonly --mirror --mode --mua --mta --mutt --mh --nmh \
|
||||
--bugnumber --no-bug-script --no-cc-menu --output --offline \
|
||||
--print --paranoid --no-paranoid --pgp --proxy --http_proxy \
|
||||
--pseudo-header --quiet --query-only --query-source --no-query-source \
|
||||
--realname --report-quiet --reply-to --replyto --subject --severity \
|
||||
--smtphost --timeout --tls --smtpuser --smtppasswd --src --source --type \
|
||||
--tag --template --verify --no-verify --no-cc --package-version \
|
||||
--no-compress --ui --interface \
|
||||
wnpp boot-floppies kernel bugs.debian.org \
|
||||
cdimage.debian.org general installation-reports \
|
||||
listarchives lists.debian.org mirrors nm.debian.org \
|
||||
press project qa.debian.org release-notes \
|
||||
security.debian.org tech-ctte upgrade-reports \
|
||||
www.debian.org' -- "$cur" ) \
|
||||
$( apt-cache pkgnames -- "$cur" 2> /dev/null) )
|
||||
COMPREPLY=($( compgen -W '--help --version --attach --no-query-bts
|
||||
--query-bts --bts --body --body-file --bodyfile --no-config-files
|
||||
--class --configure --check-available --debug --no-check-available
|
||||
--debconf --test --draftpath --editor --email --exit-prompt --filename
|
||||
--from-buildd --gnupg --gpg --path --gnus --header --include
|
||||
--no-check-installed --check-installed --justification --kudos --keyid
|
||||
--license --list-cc --maintonly --mirror --mode --mua --mta --mutt --mh
|
||||
--nmh --bugnumber --no-bug-script --no-cc-menu --output --offline
|
||||
--print --paranoid --no-paranoid --pgp --proxy --http_proxy
|
||||
--pseudo-header --quiet --query-only --query-source --no-query-source
|
||||
--realname --report-quiet --reply-to --replyto --subject --severity
|
||||
--smtphost --timeout --tls --smtpuser --smtppasswd --src --source
|
||||
--type --tag --template --verify --no-verify --no-cc --package-version
|
||||
--no-compress --ui --interface
|
||||
wnpp boot-floppies kernel bugs.debian.org cdimage.debian.org general
|
||||
installation-reports listarchives lists.debian.org mirrors
|
||||
nm.debian.org press project qa.debian.org release-notes
|
||||
security.debian.org tech-ctte upgrade-reports www.debian.org' \
|
||||
-- "$cur" ) $( apt-cache pkgnames -- "$cur" 2> /dev/null ) )
|
||||
_filedir
|
||||
return 0
|
||||
} &&
|
||||
|
|
|
@ -52,11 +52,11 @@ _rpm()
|
|||
# first parameter on line
|
||||
case $cur in
|
||||
--*)
|
||||
COMPREPLY=( $( compgen -W '--help --version --initdb \
|
||||
--checksig --addsign --delsign --rebuilddb --showrc \
|
||||
--setperms --setugids --eval --install --upgrade --query \
|
||||
COMPREPLY=( $( compgen -W '--help --version --initdb
|
||||
--checksig --addsign --delsign --rebuilddb --showrc
|
||||
--setperms --setugids --eval --install --upgrade --query
|
||||
--freshen --erase --verify --querytags --import' \
|
||||
-- "$cur" ) )
|
||||
-- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W '-e -E -F -i -q -t -U -V' \
|
||||
|
@ -122,45 +122,43 @@ _rpm()
|
|||
$split && return 0
|
||||
|
||||
# options common to all modes
|
||||
local opts="--define= --eval= --macros= --nodigest --nosignature \
|
||||
--rcfile= --quiet --pipe --verbose"
|
||||
local opts="--define= --eval= --macros= --nodigest --nosignature --rcfile=
|
||||
--quiet --pipe --verbose"
|
||||
|
||||
case ${words[1]} in
|
||||
-[iFU]*|--install|--freshen|--upgrade)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W "$opts --percent --force \
|
||||
--test --replacepkgs --replacefiles --root \
|
||||
--excludedocs --includedocs --noscripts --ignorearch \
|
||||
--dbpath --prefix= --ignoreos --nodeps --allfiles \
|
||||
--ftpproxy --ftpport --justdb --httpproxy --httpport \
|
||||
--noorder --relocate= --badreloc --notriggers \
|
||||
--excludepath= --ignoresize --oldpackage \
|
||||
--queryformat --repackage --nosuggests" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$opts --percent --force --test
|
||||
--replacepkgs --replacefiles --root --excludedocs --includedocs
|
||||
--noscripts --ignorearch --dbpath --prefix= --ignoreos --nodeps
|
||||
--allfiles --ftpproxy --ftpport --justdb --httpproxy --httpport
|
||||
--noorder --relocate= --badreloc --notriggers --excludepath=
|
||||
--ignoresize --oldpackage --queryformat --repackage
|
||||
--nosuggests" -- "$cur" ) )
|
||||
else
|
||||
_filedir '[rs]pm'
|
||||
fi
|
||||
;;
|
||||
-e|--erase)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W "$opts --allmatches \
|
||||
--noscripts --notriggers --nodeps --test --repackage" \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$opts --allmatches --noscripts
|
||||
--notriggers --nodeps --test --repackage" -- "$cur" ) )
|
||||
else
|
||||
_rpm_installed_packages $1
|
||||
fi
|
||||
;;
|
||||
-q*|--query)
|
||||
# options common to all query types
|
||||
opts+=" --changelog --configfiles --conflicts --docfiles
|
||||
--dump --enhances --filesbypkg --filecaps --fileclass
|
||||
--filecolor --fileprovide --filerequire --filesbypkg --info
|
||||
--list --obsoletes --pipe --provides --queryformat=
|
||||
--requires --scripts --suggests --triggers --xml"
|
||||
opts+=" --changelog --configfiles --conflicts --docfiles --dump
|
||||
--enhances --filesbypkg --filecaps --fileclass --filecolor
|
||||
--fileprovide --filerequire --filesbypkg --info --list
|
||||
--obsoletes --pipe --provides --queryformat= --requires
|
||||
--scripts --suggests --triggers --xml"
|
||||
|
||||
if [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then
|
||||
# -qf completion
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W "$opts --dbpath --fscontext \
|
||||
COMPREPLY=( $( compgen -W "$opts --dbpath --fscontext
|
||||
--last --root --state" -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
|
@ -171,7 +169,7 @@ _rpm()
|
|||
elif [[ ${words[@]} == *\ -@(*([^ -])p|-package )* ]]; then
|
||||
# -qp; uninstalled package completion
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W "$opts --ftpport --ftpproxy \
|
||||
COMPREPLY=( $( compgen -W "$opts --ftpport --ftpproxy
|
||||
--httpport --httpproxy --nomanifest" -- "$cur" ) )
|
||||
else
|
||||
_filedir '[rs]pm'
|
||||
|
@ -199,9 +197,9 @@ _rpm()
|
|||
;;
|
||||
-[Vy]*|--verify)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W "$opts --root= --dbpath --nodeps \
|
||||
--nogroup --nolinkto --nomode --nomtime --nordev --nouser \
|
||||
--nofiles --noscripts --nomd5 --querytags --specfile \
|
||||
COMPREPLY=( $( compgen -W "$opts --root= --dbpath --nodeps
|
||||
--nogroup --nolinkto --nomode --nomtime --nordev --nouser
|
||||
--nofiles --noscripts --nomd5 --querytags --specfile
|
||||
--whatrequires --whatprovides" -- "$cur" ) )
|
||||
# check whether we're doing file completion
|
||||
elif [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then
|
||||
|
|
|
@ -13,8 +13,8 @@ _rpmcheck()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-explain -failures -successes \
|
||||
-dump -dump-all -base -help -compressed-input' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-explain -failures -successes -dump
|
||||
-dump-all -base -help -compressed-input' -- "$cur" ) )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
|
|
@ -6,7 +6,7 @@ _rrdtool ()
|
|||
_init_completion || return
|
||||
|
||||
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" ) )
|
||||
else
|
||||
_filedir rrd
|
||||
|
|
|
@ -36,33 +36,32 @@ _rsync()
|
|||
|
||||
case $cur in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W '--verbose --quiet --no-motd --checksum \
|
||||
--archive --recursive --relative --no-implied-dirs \
|
||||
--backup --backup-dir= --suffix= --update --inplace --append \
|
||||
--append-verify --dirs --old-dirs --links --copy-links \
|
||||
--copy-unsafe-links --safe-links --copy-dirlinks \
|
||||
--keep-dirlinks --hard-links --perms --executability --chmod= \
|
||||
--acls --xattrs --owner --group --devices --copy-devices \
|
||||
--specials --times --omit-dir-times --super --fake-super \
|
||||
--sparse --dry-run --whole-file --no-whole-file \
|
||||
--one-file-system --block-size= --rsh= --rsync-path= \
|
||||
--existing --ignore-existing --remove-source-files --delete \
|
||||
--delete-before --delete-during --delete-delay --delete-after \
|
||||
--delete-excluded --ignore-errors --force --max-delete= \
|
||||
--max-size= --min-size= --partial --partial-dir= \
|
||||
--delay-updates --prune-empty-dirs --numeric-ids --timeout= \
|
||||
--contimeout= --ignore-times --size-only --modify-window= \
|
||||
--temp-dir= --fuzzy --compare-dest= --copy-dest= --link-dest= \
|
||||
--compress --compress-level= --skip-compress= --cvs-exclude \
|
||||
--filter= --exclude= --exclude-from= --include= \
|
||||
--include-from= --files-from= --from0 --protect-args \
|
||||
--address= --port= --sockopts= --blocking-io --no-blocking-io \
|
||||
--stats --8-bit-output --human-readable --progress \
|
||||
--itemize-changes --out-format= --log-file= \
|
||||
--log-file-format= --password-file= --list-only --bwlimit= \
|
||||
--write-batch= --only-write-batch= --read-batch= --protocol= \
|
||||
--iconv= --ipv4 --ipv6 --version --help --daemon --config= \
|
||||
--no-detach' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--verbose --quiet --no-motd --checksum
|
||||
--archive --recursive --relative --no-implied-dirs
|
||||
--backup --backup-dir= --suffix= --update --inplace --append
|
||||
--append-verify --dirs --old-dirs --links --copy-links
|
||||
--copy-unsafe-links --safe-links --copy-dirlinks
|
||||
--keep-dirlinks --hard-links --perms --executability --chmod=
|
||||
--acls --xattrs --owner --group --devices --copy-devices
|
||||
--specials --times --omit-dir-times --super --fake-super
|
||||
--sparse --dry-run --whole-file --no-whole-file
|
||||
--one-file-system --block-size= --rsh= --rsync-path=
|
||||
--existing --ignore-existing --remove-source-files --delete
|
||||
--delete-before --delete-during --delete-delay --delete-after
|
||||
--delete-excluded --ignore-errors --force --max-delete=
|
||||
--max-size= --min-size= --partial --partial-dir=
|
||||
--delay-updates --prune-empty-dirs --numeric-ids --timeout=
|
||||
--contimeout= --ignore-times --size-only --modify-window=
|
||||
--temp-dir= --fuzzy --compare-dest= --copy-dest= --link-dest=
|
||||
--compress --compress-level= --skip-compress= --cvs-exclude
|
||||
--filter= --exclude= --exclude-from= --include= --include-from=
|
||||
--files-from= --from0 --protect-args --address= --port=
|
||||
--sockopts= --blocking-io --no-blocking-io --stats
|
||||
--8-bit-output --human-readable --progress --itemize-changes
|
||||
--out-format= --log-file= --log-file-format= --password-file=
|
||||
--list-only --bwlimit= --write-batch= --only-write-batch=
|
||||
--read-batch= --protocol= --iconv= --ipv4 --ipv6 --version
|
||||
--help --daemon --config= --no-detach' -- "$cur" ) )
|
||||
[[ $COMPREPLY == *= ]] || compopt +o nospace
|
||||
;;
|
||||
*:*)
|
||||
|
|
|
@ -24,7 +24,7 @@ _sbopkg()
|
|||
return
|
||||
;;
|
||||
-V)
|
||||
COMPREPLY=( $( compgen -W "? \
|
||||
COMPREPLY=( $( compgen -W "?
|
||||
$( sbopkg -V ? 2>&1 | cut -s -f1 )" -- "$cur" ) )
|
||||
return
|
||||
;;
|
||||
|
|
|
@ -84,8 +84,8 @@ _screen()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-a -A -c -d -D -e -f -fn -fa -h -i -ln \
|
||||
-list -L -m -O -p -q -r -R -s -S -t -T -U -v -wipe -x -X --help \
|
||||
COMPREPLY=( $( compgen -W '-a -A -c -d -D -e -f -fn -fa -h -i -ln -list
|
||||
-L -m -O -p -q -r -R -s -S -t -T -U -v -wipe -x -X --help
|
||||
--version' -- "$cur" ) )
|
||||
fi
|
||||
} &&
|
||||
|
|
|
@ -29,8 +29,8 @@ _smartctl_device()
|
|||
}
|
||||
_smartctl_tolerance()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'normal conservative permissive \
|
||||
verypermissive' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'normal conservative permissive verypermissive' \
|
||||
-- "$cur" ) )
|
||||
}
|
||||
_smartctl_badsum()
|
||||
{
|
||||
|
@ -56,10 +56,10 @@ _smartctl_log()
|
|||
}
|
||||
_smartctl_vendorattribute()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'help 9,minutes 9,seconds 9,halfminutes \
|
||||
9,temp 192,emergencyretractcyclect 193,loadunload \
|
||||
194,10xCelsius 194,unknown 198,offlinescanuncsectorct \
|
||||
200,writeerrorcount 201,detectedtacount 220,temp' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'help 9,minutes 9,seconds 9,halfminutes 9,temp
|
||||
192,emergencyretractcyclect 193,loadunload 194,10xCelsius 194,unknown
|
||||
198,offlinescanuncsectorct 200,writeerrorcount 201,detectedtacount
|
||||
220,temp' -- "$cur" ) )
|
||||
}
|
||||
_smartctl_firmwarebug()
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ _samba_hosts()
|
|||
if [[ -n ${COMP_SAMBA_SCAN:-} ]]; then
|
||||
COMPREPLY=( $( compgen -W "$( smbtree -N -S | \
|
||||
sed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p' \
|
||||
)" -- $cur ) )
|
||||
)" -- "$cur" ) )
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -2,16 +2,15 @@
|
|||
|
||||
_ssh_ciphers()
|
||||
{
|
||||
COMPREPLY+=( $( compgen -W '3des-cbc aes128-cbc \
|
||||
aes192-cbc aes256-cbc aes128-ctr aes192-ctr aes256-ctr arcfour128 \
|
||||
arcfour256 arcfour blowfish-cbc cast128-cbc' -- "$cur" ) )
|
||||
COMPREPLY+=( $( compgen -W '3des-cbc aes128-cbc aes192-cbc aes256-cbc
|
||||
aes128-ctr aes192-ctr aes256-ctr arcfour128 arcfour256 arcfour
|
||||
blowfish-cbc cast128-cbc' -- "$cur" ) )
|
||||
}
|
||||
|
||||
_ssh_macs()
|
||||
{
|
||||
COMPREPLY+=( $( compgen -W 'hmac-md5 hmac-sha1 \
|
||||
umac-64@openssh.com hmac-ripemd160 hmac-sha1-96 hmac-md5-96' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY+=( $( compgen -W 'hmac-md5 hmac-sha1 umac-64@openssh.com
|
||||
hmac-ripemd160 hmac-sha1-96 hmac-md5-96' -- "$cur" ) )
|
||||
}
|
||||
|
||||
_ssh_options()
|
||||
|
@ -60,7 +59,7 @@ _ssh_suboption()
|
|||
PubkeyAuthentication|RhostsRSAAuthentication|RSAAuthentication|\
|
||||
StrictHostKeyChecking|TCPKeepAlive|UsePrivilegedPort|\
|
||||
VerifyHostKeyDNS|VisualHostKey)
|
||||
COMPREPLY=( $( compgen -W 'yes no' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W 'yes no' -- "$cur" ) )
|
||||
;;
|
||||
AddressFamily)
|
||||
COMPREPLY=( $( compgen -W 'any inet inet6' -- "$cur" ) )
|
||||
|
@ -86,8 +85,8 @@ _ssh_suboption()
|
|||
-- "$cur" ) )
|
||||
;;
|
||||
PreferredAuthentications)
|
||||
COMPREPLY=( $( compgen -W 'gssapi-with-mic host-based \
|
||||
publickey keyboard-interactive password' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'gssapi-with-mic host-based publickey
|
||||
keyboard-interactive password' -- "$cur" ) )
|
||||
;;
|
||||
MACs)
|
||||
_ssh_macs
|
||||
|
|
|
@ -58,7 +58,7 @@ _strace()
|
|||
|
||||
COMPREPLY=( $( compgen -W '${!syscalls[@]} file
|
||||
process network signal ipc desc all none' \
|
||||
-- "$cur") )
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@ -89,9 +89,8 @@ _strace()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-c -d -f -ff -F --help -i -q \
|
||||
-r -t -tt -ttt -T -v -V -x -xx -a -e -o -O -p \
|
||||
-s -S -u -E' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '-c -d -f -ff -F --help -i -q -r -t -tt
|
||||
-ttt -T -v -V -x -xx -a -e -o -O -p -s -S -u -E' -- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -c -- "$cur" ) )
|
||||
fi
|
||||
|
|
113
completions/svk
113
completions/svk
|
@ -7,13 +7,12 @@ _svk()
|
|||
|
||||
local commands options command
|
||||
|
||||
commands='add admin annotate ann blame praise cat checkout co cleanup \
|
||||
cmerge cm commit ci copy cp delete del remove rm depotmap \
|
||||
depot describe desc diff di help h ? import info list ls log \
|
||||
merge mirror mi mkdir move mv ren rename patch propdel pd pdel \
|
||||
propedit pe pedit propget pg pget proplist pl plist propset ps \
|
||||
pset pull push resolved revert smerge sm status st stat switch \
|
||||
sw sync sy update up verify'
|
||||
commands='add admin annotate ann blame praise cat checkout co cleanup
|
||||
cmerge cm commit ci copy cp delete del remove rm depotmap depot
|
||||
describe desc diff di help h ? import info list ls log merge mirror mi
|
||||
mkdir move mv ren rename patch propdel pd pdel propedit pe pedit
|
||||
propget pg pget proplist pl plist propset ps pset pull push resolved
|
||||
revert smerge sm status st stat switch sw sync sy update up verify'
|
||||
|
||||
if [[ $cword -eq 1 ]] ; then
|
||||
if [[ "$cur" == -* ]]; then
|
||||
|
@ -49,99 +48,99 @@ _svk()
|
|||
options='-r --revision'
|
||||
;;
|
||||
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'
|
||||
;;
|
||||
cleanup)
|
||||
options='-a --all'
|
||||
;;
|
||||
cmerge|cm)
|
||||
options='-c --change -l --log -r --revision -a --auto \
|
||||
--verbatim --no-ticket -m --message -F --file \
|
||||
--template --encoding -P --patch -S --sign -C \
|
||||
options='-c --change -l --log -r --revision -a --auto
|
||||
--verbatim --no-ticket -m --message -F --file
|
||||
--template --encoding -P --patch -S --sign -C
|
||||
--check-only --direct'
|
||||
;;
|
||||
commit|ci)
|
||||
options='--import -m --message -F --file --encoding \
|
||||
--template -P --patch -S --sign -C --check-only -N \
|
||||
options='--import -m --message -F --file --encoding
|
||||
--template -P --patch -S --sign -C --check-only -N
|
||||
--non-recursive --direct'
|
||||
;;
|
||||
copy|cp)
|
||||
options='-r --revision -p --parent -q --quiet -m --message \
|
||||
-F --file --template --encoding -P --patch -S --sign \
|
||||
-C --check-only --direct'
|
||||
options='-r --revision -p --parent -q --quiet -m --message
|
||||
-F --file --template --encoding -P --patch -S --sign -C
|
||||
--check-only --direct'
|
||||
;;
|
||||
delete|del|remove|rm)
|
||||
options='-k --keep-local -m --message -F --file --encoding \
|
||||
--template -P --patch -S --sign -C --check-only \
|
||||
options='-k --keep-local -m --message -F --file --encoding
|
||||
--template -P --patch -S --sign -C --check-only
|
||||
--direct'
|
||||
;;
|
||||
depotmap|depot)
|
||||
options='-i --init -l --list -d --detach --relocate'
|
||||
;;
|
||||
diff|di)
|
||||
options='-r --revision -s --summarize -b --verbose -N \
|
||||
options='-r --revision -s --summarize -b --verbose -N
|
||||
--non-recursive'
|
||||
;;
|
||||
import)
|
||||
options='-f --from-checkout -t --to-checkout -m --message \
|
||||
-F --file --template --encoding -P --patch -S --sign \
|
||||
-C --check-only -N --non-recursive --direct'
|
||||
options='-f --from-checkout -t --to-checkout -m --message
|
||||
-F --file --template --encoding -P --patch -S --sign -C
|
||||
--check-only -N --non-recursive --direct'
|
||||
;;
|
||||
list|ls)
|
||||
options='-r --revision -v --verbose -R --recursive -d \
|
||||
options='-r --revision -v --verbose -R --recursive -d
|
||||
--depth -f --full-path'
|
||||
;;
|
||||
log)
|
||||
options='-r --revision -l --limit -q --quiet -x --cross \
|
||||
-v --verbose'
|
||||
options='-r --revision -l --limit -q --quiet -x --cross -v
|
||||
--verbose'
|
||||
;;
|
||||
merge)
|
||||
options='-r --revision -c --change -I --incremental -a \
|
||||
--auto -l --log -s --sync -t --to -f --from \
|
||||
--verbatim --no-ticket --track-rename -m --message \
|
||||
-F --file --template --encoding -P --patch -S --sign \
|
||||
-C --check-only --direct'
|
||||
options='-r --revision -c --change -I --incremental -a
|
||||
--auto -l --log -s --sync -t --to -f --from --verbatim
|
||||
--no-ticket --track-rename -m --message -F --file
|
||||
--template --encoding -P --patch -S --sign -C
|
||||
--check-only --direct'
|
||||
;;
|
||||
mirror|mi)
|
||||
options='-l --list -d --detach --relocate --recover \
|
||||
options='-l --list -d --detach --relocate --recover
|
||||
--unlock --upgrade'
|
||||
;;
|
||||
mkdir)
|
||||
options='-p --parent -m --message -F --file --template \
|
||||
--encoding -P --patch -S --sign -C --check-only \
|
||||
options='-p --parent -m --message -F --file --template
|
||||
--encoding -P --patch -S --sign -C --check-only
|
||||
--direct'
|
||||
;;
|
||||
move|mv|rename|ren)
|
||||
options='-r --revision -p --parent -q --quiet -m \
|
||||
--message -F --file --encoding --template -P --patch \
|
||||
-S --sign -C --check-only --direct'
|
||||
options='-r --revision -p --parent -q --quiet -m --message
|
||||
-F --file --encoding --template -P --patch -S --sign -C
|
||||
--check-only --direct'
|
||||
;;
|
||||
patch)
|
||||
options='--depot'
|
||||
;;
|
||||
propdel|propset|pdel|pset|pd|ps)
|
||||
options='-R --recursive -r --revision --revprop -m \
|
||||
--message -F --file --template --encoding -P --patch \
|
||||
-S --sign -C --check-only -q --quiet --direct'
|
||||
options='-R --recursive -r --revision --revprop -m
|
||||
--message -F --file --template --encoding -P --patch -S
|
||||
--sign -C --check-only -q --quiet --direct'
|
||||
;;
|
||||
propedit|pedit|pe)
|
||||
options='-R --recursive -r --revision --revprop -m \
|
||||
--message -F --file --template --encoding -P --patch \
|
||||
options='-R --recursive -r --revision --revprop -m
|
||||
--message -F --file --template --encoding -P --patch
|
||||
-S --sign -C --check-only --direct'
|
||||
;;
|
||||
propget|pget|pg)
|
||||
options='-R --recursive -r --revision --revprop --strict'
|
||||
;;
|
||||
proplist|plist|pl)
|
||||
options='-R --recursive -v --verbose \
|
||||
-r --revision --revprop'
|
||||
options='-R --recursive -v --verbose -r --revision
|
||||
--revprop'
|
||||
;;
|
||||
pull)
|
||||
options='-a --all -l --lump'
|
||||
;;
|
||||
push)
|
||||
options='-f --from -l --lump -C --check -P --patch -S \
|
||||
options='-f --from -l --lump -C --check -P --patch -S
|
||||
--sign --verbatim'
|
||||
;;
|
||||
resolved)
|
||||
|
@ -151,14 +150,14 @@ _svk()
|
|||
options='-R --recursive -q --quiet'
|
||||
;;
|
||||
smerge|sm)
|
||||
options='-I --incremental -l --log -B --baseless -b \
|
||||
--base -s --sync -t --to -f --from --verbatim \
|
||||
--no-ticket --track-rename --host --remoterev -m \
|
||||
--message -F --file --template --encoding -P --patch \
|
||||
-S --sign -C --check-only --direct'
|
||||
options='-I --incremental -l --log -B --baseless -b --base
|
||||
-s --sync -t --to -f --from --verbatim --no-ticket
|
||||
--track-rename --host --remoterev -m --message -F
|
||||
--file --template --encoding -P --patch -S --sign -C
|
||||
--check-only --direct'
|
||||
;;
|
||||
status|stat|st)
|
||||
options='-q --quiet --no-ignore -N --non-recursive -v \
|
||||
options='-q --quiet --no-ignore -N --non-recursive -v
|
||||
--verbose'
|
||||
;;
|
||||
switch|sw)
|
||||
|
@ -168,7 +167,7 @@ _svk()
|
|||
options='-a --all -s --skipto -t --torev'
|
||||
;;
|
||||
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'
|
||||
;;
|
||||
esac
|
||||
|
@ -178,17 +177,17 @@ _svk()
|
|||
else
|
||||
case $command in
|
||||
help|h|\?)
|
||||
COMPREPLY=( $( compgen -W "$commands \
|
||||
environment commands intro" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$commands environment commands
|
||||
intro" -- "$cur" ) )
|
||||
;;
|
||||
admin)
|
||||
COMPREPLY=( $( compgen -W 'help deltify dump hotcopy \
|
||||
list-dblogs list-unused-dblogs load lstxns recover \
|
||||
COMPREPLY=( $( compgen -W 'help deltify dump hotcopy
|
||||
list-dblogs list-unused-dblogs load lstxns recover
|
||||
rmtxns setlog verify rmcache' -- "$cur" ) )
|
||||
;;
|
||||
patch)
|
||||
COMPREPLY=( $( compgen -W '--ls --list --cat --view \
|
||||
--regen --regenerate --up --update --apply --rm \
|
||||
COMPREPLY=( $( compgen -W '--ls --list --cat --view
|
||||
--regen --regenerate --up --update --apply --rm
|
||||
--delete' -- "$cur" ) )
|
||||
;;
|
||||
sync)
|
||||
|
|
|
@ -7,7 +7,7 @@ _sync_members()
|
|||
|
||||
case $prev in
|
||||
-w|-g|-d|--welcome-msg|--goodbye-msg|--digest)
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-d|--file)
|
||||
|
@ -19,8 +19,8 @@ _sync_members()
|
|||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--no-change --welcome-msg \
|
||||
--goodbye-msg --digest --notifyadmin --file --help' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '--no-change --welcome-msg --goodbye-msg
|
||||
--digest --notifyadmin --file --help' -- "$cur" ) )
|
||||
else
|
||||
_xfunc list_lists _mailman_lists
|
||||
fi
|
||||
|
|
|
@ -105,11 +105,11 @@ _umount()
|
|||
cur="${cur##*,}"
|
||||
split=true
|
||||
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
|
||||
iso9660 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g proc qnx4
|
||||
ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs udf ufs
|
||||
umsdos usbfs vfat xfs' -- "$cur") )
|
||||
umsdos usbfs vfat xfs' -- "$cur" ) )
|
||||
_fstypes
|
||||
$split && COMPREPLY=( ${COMPREPLY[@]/#/$prev,} )
|
||||
return
|
||||
|
|
|
@ -33,7 +33,7 @@ _unpack200()
|
|||
|
||||
if ! $pack ; 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" ) )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
else
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue