merge with master

This commit is contained in:
Guillaume Rousse 2009-10-05 21:08:50 +02:00
commit ca8598aa51
155 changed files with 10803 additions and 11003 deletions

View File

@ -47,7 +47,6 @@ bashcomp_DATA = contrib/ant \
contrib/gpg \ contrib/gpg \
contrib/gpg2 \ contrib/gpg2 \
contrib/gzip \ contrib/gzip \
contrib/harbour \
contrib/heimdal \ contrib/heimdal \
contrib/iconv \ contrib/iconv \
contrib/imagemagick \ contrib/imagemagick \
@ -62,7 +61,6 @@ bashcomp_DATA = contrib/ant \
contrib/ldapvi \ contrib/ldapvi \
contrib/lftp \ contrib/lftp \
contrib/lilo \ contrib/lilo \
contrib/lilypond \
contrib/links \ contrib/links \
contrib/lisp \ contrib/lisp \
contrib/lvm \ contrib/lvm \

View File

@ -144,6 +144,9 @@ complete -f -X '!*.rpm' rpm2cpio
complete -f -X '!*.sqlite' sqlite3 complete -f -X '!*.sqlite' sqlite3
complete -f -X '!*.aux' bibtex complete -f -X '!*.aux' bibtex
complete -f -X '!*.po' poedit gtranslator kbabel lokalize complete -f -X '!*.po' poedit gtranslator kbabel lokalize
complete -f -X '!*.@([Pp][Rr][Gg]|[Cc][Ll][Pp])' harbour gharbour hbpp
complete -f -X '!*.[Hh][Rr][Bb]' hbrun
complete -f -X '!*.ly' lilypond ly2dvi
# FINISH exclude -- do not remove this line # FINISH exclude -- do not remove this line
# start of section containing compspecs that can be handled within bash # start of section containing compspecs that can be handled within bash
@ -228,7 +231,7 @@ quote_readline()
# This function shell-dequotes the argument # This function shell-dequotes the argument
dequote() dequote()
{ {
eval echo "$1" eval echo "$1" 2> /dev/null
} }
# Get the word to complete. # Get the word to complete.
@ -1114,7 +1117,6 @@ _ipsec()
setup) setup)
COMPREPLY=( $( compgen -W '--start --stop --restart' -- "$cur" ) ) COMPREPLY=( $( compgen -W '--start --stop --restart' -- "$cur" ) )
;; ;;
*) *)
;; ;;
esac esac
@ -1604,8 +1606,7 @@ _filedir_xspec()
COMPREPLY=( "${toks[@]}" ) COMPREPLY=( "${toks[@]}" )
} }
list=( $( sed -ne '/^# START exclude/,/^# FINISH exclude/p' \ list=( $( sed -ne '/^# START exclude/,/^# FINISH exclude/p' $BASH_COMPLETION | \
$BASH_COMPLETION | \
# read exclusion compspecs # read exclusion compspecs
( (
while read line while read line
@ -1637,6 +1638,7 @@ if [ -d $BASH_COMPLETION_COMPAT_DIR -a -r $BASH_COMPLETION_COMPAT_DIR -a \
done done
fi fi
if [ -d $BASH_COMPLETION_DIR -a -r $BASH_COMPLETION_DIR -a \ if [ -d $BASH_COMPLETION_DIR -a -r $BASH_COMPLETION_DIR -a \
$BASH_COMPLETION_DIR != $BASH_COMPLETION_COMPAT_DIR -a \
-x $BASH_COMPLETION_DIR ]; then -x $BASH_COMPLETION_DIR ]; then
for i in $BASH_COMPLETION_DIR/*; do for i in $BASH_COMPLETION_DIR/*; do
[[ ${i##*/} != @(*~|*.bak|*.swp|\#*\#|*.dpkg*|*.rpm@(orig|new|save)) ]] && [[ ${i##*/} != @(*~|*.bak|*.swp|\#*\#|*.dpkg*|*.rpm@(orig|new|save)) ]] &&
@ -1657,8 +1659,8 @@ unset BASH_COMPLETION_ORIGINAL_V_VALUE
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -424,8 +424,8 @@ complete -F _svnlook $default svnlook
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -84,16 +84,14 @@ _yum()
cache dbcache all' -- $cur ) ) cache dbcache all' -- $cur ) )
;; ;;
repolist) repolist)
COMPREPLY=( $( compgen -W 'all enabled disabled' \ COMPREPLY=( $( compgen -W 'all enabled disabled' -- $cur ) )
-- $cur ) )
;; ;;
localinstall|localupdate) localinstall|localupdate)
# TODO: should not match *src.rpm # TODO: should not match *src.rpm
_filedir rpm _filedir rpm
;; ;;
-d|-e) -d|-e)
COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9 10' \ COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9 10' -- $cur ) )
-- $cur ) )
;; ;;
-c) -c)
_filedir _filedir
@ -102,12 +100,10 @@ _yum()
_filedir -d _filedir -d
;; ;;
--enablerepo) --enablerepo)
COMPREPLY=( $( compgen -W '$( _yum_repolist \ COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' -- $cur ) )
disabled )' -- $cur ) )
;; ;;
--disablerepo) --disablerepo)
COMPREPLY=( $( compgen -W '$( _yum_repolist \ COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- $cur ) )
enabled )' -- $cur ) )
;; ;;
--disableexcludes) --disableexcludes)
COMPREPLY=( $( compgen -W '$( _yum_repolist all ) \ COMPREPLY=( $( compgen -W '$( _yum_repolist all ) \
@ -164,8 +160,7 @@ _yum_arch()
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=( $( compgen -W '-d -v -vv -n -c -z -s -l \ COMPREPLY=( $( compgen -W '-d -v -vv -n -c -z -s -l -q' -- $cur ) )
-q' -- $cur ) )
;; ;;
*) *)
_filedir -d _filedir -d
@ -178,8 +173,8 @@ complete -F _yum_arch $filenames yum-arch
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -67,8 +67,8 @@ have complete-ant-cmd.pl && \
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -7,7 +7,8 @@ _apache2ctl() {
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
APWORDS=$(apache2ctl 2>&1 >/dev/null | head -n1 | cut -f3 -d" " | tr "|" " ") APWORDS=$(apache2ctl 2>&1 >/dev/null | head -n1 | cut -f3 -d" " | \
tr "|" " ")
COMPREPLY=( $( compgen -W "$APWORDS" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$APWORDS" -- "$cur" ) )
} }
@ -16,8 +17,8 @@ complete -F _apache2ctl apache2ctl
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -20,8 +20,7 @@ _apt_get()
remove|autoremove|purge) remove|autoremove|purge)
if [ -f /etc/debian_version ]; then if [ -f /etc/debian_version ]; then
# Debian system # Debian system
COMPREPLY=( $( _comp_dpkg_installed_packages \ COMPREPLY=( $( _comp_dpkg_installed_packages $cur ) )
$cur ) )
else else
# assume RPM based # assume RPM based
_rpm_installed_packages _rpm_installed_packages
@ -29,10 +28,10 @@ _apt_get()
return 0 return 0
;; ;;
*) *)
COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" 2> /dev/null ) ) COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
2> /dev/null ) )
return 0 return 0
;; ;;
esac esac
fi fi
@ -41,40 +40,30 @@ _apt_get()
_filedir _filedir
return 0 return 0
;; ;;
-@(t|-target-release|-default-release)) -@(t|-target-release|-default-release))
COMPREPLY=( $( apt-cache policy | \ COMPREPLY=( $( apt-cache policy | \
grep "release.o=Debian,a=$cur" | \ grep "release.o=Debian,a=$cur" | \
sed -e "s/.*a=\(\w*\).*/\1/" | uniq 2> /dev/null) ) sed -e "s/.*a=\(\w*\).*/\1/" | uniq 2> /dev/null) )
return 0 return 0
;; ;;
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-d -f -h -v -m -q -s -y -u -t -b -c -o \
COMPREPLY=( $( compgen -W '-d -f -h -v -m -q -s -y \ --download-only --fix-broken --help --version --ignore-missing \
-u -t -b -c -o --download-only --fix-broken \ --fix-missing --no-download --quiet --simulate --just-print \
--help --version --ignore-missing \ --dry-run --recon --no-act --yes --assume-yes --show-upgraded \
--fix-missing --no-download --quiet --simulate \ --only-source --compile --build --ignore-hold --target-release \
--just-print --dry-run --recon --no-act --yes \ --no-upgrade --force-yes --print-uris --purge --reinstall \
--assume-yes --show-upgraded --only-source \ --list-cleanup --default-release --trivial-only --no-remove \
--compile --build --ignore-hold \ --diff-only --no-install-recommends --tar-only --config-file \
--target-release --no-upgrade --force-yes \ --option --auto-remove' -- "$cur" ) )
--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 else
COMPREPLY=( $( compgen -W 'update upgrade dselect-upgrade \ COMPREPLY=( $( compgen -W 'update upgrade dselect-upgrade \
dist-upgrade install remove purge source build-dep \ dist-upgrade install remove purge source build-dep \
check clean autoclean autoremove' -- "$cur" ) ) check clean autoclean autoremove' -- "$cur" ) )
fi fi
return 0 return 0
} && } &&
complete -F _apt_get $filenames apt-get complete -F _apt_get $filenames apt-get
@ -159,8 +148,8 @@ complete -F _apt_cache $filenames apt-cache
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -22,8 +22,7 @@ _apt_build()
return 0 return 0
;; ;;
remove) remove)
COMPREPLY=( $( _comp_dpkg_installed_packages \ COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) )
"$cur" ) )
return 0 return 0
;; ;;
*) *)
@ -33,30 +32,25 @@ _apt_build()
fi fi
case "$prev" in case "$prev" in
--@(patch|build-dir|repository-dir)) --@(patch|build-dir|repository-dir))
_filedir _filedir
return 0 return 0
;; ;;
-@(h|-help)) -@(h|-help))
return 0 return 0
;; ;;
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --show-upgraded -u --build-dir \ COMPREPLY=( $( compgen -W '--help --show-upgraded -u --build-dir \
--repository-dir --build-only \ --repository-dir --build-only --build-command --reinstall \
--build-command --reinstall --rebuild \ --rebuild --remove-builddep --no-wrapper --purge --patch \
--remove-builddep --no-wrapper --purge \ --patch-strip -p --yes -y --version -v --no-source' -- "$cur" ) )
--patch --patch-strip -p --yes -y \
--version -v --no-source' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'update upgrade install remove \ COMPREPLY=( $( compgen -W 'update upgrade install remove source \
source dist-upgrade world clean info \ dist-upgrade world clean info clean-build update-repository' \
clean-build update-repository ' -- "$cur" ) ) -- "$cur" ) )
fi fi
@ -66,8 +60,8 @@ complete -F _apt_build $filenames apt-build
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -9,8 +9,7 @@ _comp_dpkg_hold_packages()
} || { } || {
_comp_dpkg_hold_packages() _comp_dpkg_hold_packages()
{ {
grep -B 2 'hold' /var/lib/dpkg/status | grep "Package: $1" \ grep -B 2 'hold' /var/lib/dpkg/status | grep "Package: $1" | cut -d\ -f2
| cut -d\ -f2
} }
} }
@ -53,7 +52,6 @@ _aptitude()
COMPREPLY=( $( _comp_dpkg_hold_packages "$cur" ) ) COMPREPLY=( $( _comp_dpkg_hold_packages "$cur" ) )
return 0 return 0
;; ;;
esac esac
fi fi
@ -62,32 +60,28 @@ _aptitude()
@(autoclean|clean|forget-new|search|upgrade|safe-upgrade|update|keep-all)) @(autoclean|clean|forget-new|search|upgrade|safe-upgrade|update|keep-all))
return 0 return 0
;; ;;
-S) -S)
_filedir _filedir
return 0 return 0
;; ;;
-@(t|-target-release|-default-release)) -@(t|-target-release|-default-release))
COMPREPLY=( $( apt-cache policy | \ COMPREPLY=( $( apt-cache policy | \
grep "release.o=Debian,a=$cur" | \ grep "release.o=Debian,a=$cur" | \
sed -e "s/.*a=\(\w*\).*/\1/" | uniq 2> /dev/null ) ) sed -e "s/.*a=\(\w*\).*/\1/" | uniq 2> /dev/null ) )
return 0 return 0
;; ;;
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$dashoptions" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$dashoptions" -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new clean \ COMPREPLY=( $( compgen -W 'update upgrade safe-upgrade forget-new \
autoclean install reinstall remove \ clean autoclean install reinstall remove \
hold unhold purge markauto unmarkauto why why-not \ hold unhold purge markauto unmarkauto why why-not \
dist-upgrade full-upgrade download search show \ dist-upgrade full-upgrade download search show \
forbid-version changelog keep-all build-dep' -- "$cur" ) ) forbid-version changelog keep-all build-dep' -- "$cur" ) )
fi fi
return 0 return 0
} }
complete -F _aptitude $default aptitude complete -F _aptitude $default aptitude
@ -95,8 +89,8 @@ complete -F _aptitude $default aptitude
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -91,8 +91,8 @@ complete -F _aspell $filenames aspell
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -8,17 +8,16 @@ _autorpm()
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
COMPREPLY=( $( compgen -W '--notty --debug --help --version \ COMPREPLY=( $( compgen -W '--notty --debug --help --version auto add \
auto add fullinfo info help install list \ fullinfo info help install list remove set' -- "$cur" ) )
remove set' -- "$cur" ) )
} && } &&
complete -F _autorpm autorpm complete -F _autorpm autorpm
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -12,8 +12,8 @@ _alias()
COMPREPLY=( $( compgen -A alias -- "$cur" ) ) COMPREPLY=( $( compgen -A alias -- "$cur" ) )
;; ;;
*=) *=)
COMPREPLY=( "$( alias ${cur%=} 2>/dev/null | \ COMPREPLY=( "$( alias ${cur%=} 2>/dev/null | sed \
sed -e 's|^alias '"$cur"'\(.*\)$|\1|' )" ) -e 's|^alias '"$cur"'\(.*\)$|\1|' )" )
;; ;;
esac esac
} }
@ -59,8 +59,7 @@ _function()
if [ "$prev" = -f ]; then if [ "$prev" = -f ]; then
COMPREPLY=( $( compgen -A function -- "$cur" ) ) COMPREPLY=( $( compgen -A function -- "$cur" ) )
elif [[ "$cur" == -* ]]; then elif [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-a -f -F -i -r -x -p' -- \ COMPREPLY=( $( compgen -W '-a -f -F -i -r -x -p' -- "$cur" ) )
"$cur" ) )
fi fi
elif [ $COMP_CWORD -eq 1 ]; then elif [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -A function -- "$cur" ) ) COMPREPLY=( $( compgen -A function -- "$cur" ) )
@ -127,8 +126,8 @@ complete -F _complete complete
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -8,17 +8,16 @@ _nslookup()
COMPREPLY=() COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]#-} cur=${COMP_WORDS[COMP_CWORD]#-}
COMPREPLY=( $( compgen -P '-' -W 'all class= debug d2 domain= \ COMPREPLY=( $( compgen -P '-' -W 'all class= debug d2 domain= srchlist= \
srchlist= defname search port= querytype= \ defname search port= querytype= type= recurse retry root timeout vc \
type= recurse retry root timeout vc \
ignoretc' -- "$cur" ) ) ignoretc' -- "$cur" ) )
} && } &&
complete -F _nslookup nslookup complete -F _nslookup nslookup
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -7,8 +7,7 @@ _bk() {
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
BKCMDS="$( bk help topics | grep '^ bk' | cut -d ' ' -f 4 | \ BKCMDS="$( bk help topics | grep '^ bk' | cut -d ' ' -f 4 | xargs echo )"
xargs echo )"
COMPREPLY=( $( compgen -W "$BKCMDS" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$BKCMDS" -- "$cur" ) )
_filedir _filedir
@ -19,8 +18,8 @@ complete -F _bk bk
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -19,17 +19,14 @@ _btdownload()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval \ COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval \
--download_slice_size --request_backlog \ --download_slice_size --request_backlog --max_message_length \
--max_message_length --ip --minport --maxport \ --ip --minport --maxport --responsefile --url --saveas --timeout \
--responsefile --url --saveas --timeout \ --timeout_check_interval --max_slice_length --max_rate_period \
--timeout_check_interval --max_slice_length \ --bind --upload_rate_fudge --display_interval --rerequest_interval \
--max_rate_period --bind --upload_rate_fudge \ --min_peers --http_timeout --max_initiate --max_allow_in \
--display_interval --rerequest_interval \ --check_hashes --max_upload_rate --snub_time --spew \
--min_peers --http_timeout --max_initiate \ --rarest_first_cutoff --min_uploads --report_hash_failures' \
--max_allow_in --check_hashes \ -- "$cur" ) )
--max_upload_rate --snub_time --spew \
--rarest_first_cutoff --min_uploads \
--report_hash_failures' -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -38,8 +35,8 @@ complete -F _btdownload btdownloadheadless.py btdownloadcurses.py btdownloadgui.
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -24,8 +24,8 @@ _bluetooth_services()
_bluetooth_packet_types() _bluetooth_packet_types()
{ {
COMPREPLY=( $( compgen -W 'DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3' -- \ COMPREPLY=( $( compgen -W 'DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3' \
"$cur" ) ) -- "$cur" ) )
} }
_get_command() _get_command()
@ -87,8 +87,7 @@ _hcitool()
;; ;;
cc) cc)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--role \ COMPREPLY=( $( compgen -W '--role --pkt-type' -- "$cur" ) )
--pkt-type' -- "$cur" ) )
else else
_count_args _count_args
if [ $args -eq 2 ]; then if [ $args -eq 2 ]; then
@ -101,8 +100,7 @@ _hcitool()
if [ $args -eq 2 ]; then if [ $args -eq 2 ]; then
_bluetooth_adresses _bluetooth_adresses
else else
COMPREPLY=( $( compgen -W \ COMPREPLY=( $( compgen -W 'master slave' -- "$cur" ) )
'master slave' -- "$cur" ) )
fi fi
;; ;;
cpt) cpt)
@ -118,8 +116,7 @@ _hcitool()
if [ $args -eq 2 ]; then if [ $args -eq 2 ]; then
_bluetooth_adresses _bluetooth_adresses
else else
COMPREPLY=( $( compgen -W \ COMPREPLY=( $( compgen -W '0 1' -- "$cur" ) )
'0 1' -- "$cur" ) )
fi fi
;; ;;
esac esac
@ -166,16 +163,14 @@ _sdptool()
;; ;;
@(browse|records)) @(browse|records))
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--tree \ COMPREPLY=( $( compgen -W '--tree --raw --xml' -- "$cur" ) )
--raw --xml' -- "$cur" ) )
else else
_bluetooth_adresses _bluetooth_adresses
fi fi
;; ;;
add) add)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--handle \ COMPREPLY=( $( compgen -W '--handle --channel' -- "$cur" ) )
--channel' -- "$cur" ) )
else else
_bluetooth_services _bluetooth_services
fi fi
@ -401,12 +396,10 @@ _hciattach()
;; ;;
3) 3)
COMPREPLY=( $( compgen -W '9600 19200 38400 \ COMPREPLY=( $( compgen -W '9600 19200 38400 \
57600 115200 230400 460800 921600' \ 57600 115200 230400 460800 921600' -- "$cur" ) )
-- "$cur" ) )
;; ;;
4) 4)
COMPREPLY=( $( compgen -W 'flow noflow' \ COMPREPLY=( $( compgen -W 'flow noflow' -- "$cur" ) )
-- "$cur" ) )
;; ;;
5) 5)
_bluetooth_adresses _bluetooth_adresses
@ -452,8 +445,8 @@ complete -F _avctrl avctrl
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -21,8 +21,7 @@ _brctl()
show) show)
;; ;;
*) *)
COMPREPLY=( $( compgen -W "$(brctl \ COMPREPLY=( $( compgen -W "$(brctl show | sed '1d' | \
show | sed '1d' | \
awk '{print $1}' )" -- "$cur" ) ) awk '{print $1}' )" -- "$cur" ) )
esac esac
;; ;;
@ -42,8 +41,8 @@ complete -F _brctl $default brctl
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -40,8 +40,8 @@ complete -F _bzip2 $filenames bzip2
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -10,16 +10,15 @@ _cardctl()
if [ $COMP_CWORD -eq 1 ]; then if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W 'status config ident suspend \ COMPREPLY=( $( compgen -W 'status config ident suspend \
resume reset eject insert scheme' \ resume reset eject insert scheme' -- "$cur" ) )
-- "$cur" ) )
fi fi
} && } &&
complete -F _cardctl cardctl complete -F _cardctl cardctl
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -61,8 +61,7 @@ _cfrun()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-f -h -d -S -T -v' \ COMPREPLY=( $( compgen -W '-f -h -d -S -T -v' -- $cur ) )
-- $cur ) )
else else
hostfile=${CFINPUTS:-/var/lib/cfengine/inputs}/cfrun.hosts hostfile=${CFINPUTS:-/var/lib/cfengine/inputs}/cfrun.hosts
for (( i=1; i < COMP_CWORD; i++ )); do for (( i=1; i < COMP_CWORD; i++ )); do
@ -87,8 +86,8 @@ complete -F _cfrun cfrun
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -25,12 +25,10 @@ _chkconfig()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--list --add --del --override \ COMPREPLY=( $( compgen -W '--list --add --del --override --level' -- "$cur" ) )
--level' -- "$cur" ) )
else else
if [ $COMP_CWORD -eq 2 -o $COMP_CWORD -eq 4 ]; then if [ $COMP_CWORD -eq 2 -o $COMP_CWORD -eq 4 ]; then
COMPREPLY=( $( compgen -W 'on off reset \ COMPREPLY=( $( compgen -W 'on off reset resetpriorities' -- "$cur" ) )
resetpriorities' -- "$cur" ) )
else else
_services _services
fi fi
@ -40,8 +38,8 @@ complete -F _chkconfig chkconfig
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -20,8 +20,8 @@ complete -F _chsh chsh
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -29,8 +29,8 @@ complete -F _cksfv cksfv
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -13,8 +13,7 @@ _clisp()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \ COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \
-M -m -L -N -E -q --quiet --silent -w -I -ansi \ -M -m -L -N -E -q --quiet --silent -w -I -ansi \
-traditional -p -C -norc -i -c -l -o -x ' \ -traditional -p -C -norc -i -c -l -o -x ' -- "$cur" ) )
-- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -25,8 +24,8 @@ complete -F _clisp $default clisp
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

14
contrib/configure vendored
View File

@ -12,17 +12,21 @@ _configure()
[[ "$cur" != -* ]] && return 0 [[ "$cur" != -* ]] && return 0
if [ -n "$COMP_CONFIGURE_HINTS" ]; then if [ -n "$COMP_CONFIGURE_HINTS" ]; then
COMPREPLY=( $( $1 --help 2>&1 | awk '/^ --[A-Za-z]/ { print $1; if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,].*//g' | grep ^$cur ) ) COMPREPLY=( $( $1 --help 2>&1 | awk '/^ --[A-Za-z]/ { print $1; \
if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,].*//g' | \
grep ^$cur ) )
else else
COMPREPLY=( $( $1 --help 2>&1 | awk '/^ --[A-Za-z]/ { print $1; if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,=].*//g' | grep ^$cur ) ) COMPREPLY=( $( $1 --help 2>&1 | awk '/^ --[A-Za-z]/ { print $1; \
if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,=].*//g' | \
grep ^$cur ) )
fi fi
} }
complete -F _configure $default configure complete -F _configure $default configure
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -11,22 +11,22 @@ _cowsay()
case $prev in case $prev in
-f) -f)
COMPREPLY=( $( compgen -W '$( cowsay -l | tail -n +2 \ COMPREPLY=( $( compgen -W '$( cowsay -l | tail -n +2)' -- "$cur" ) )
)' -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
# relevant options completion # relevant options completion
COMPREPLY=( $( compgen -W '-b -d -g -p -s -t -w -y -e -f -h -l -n -T -W' -- "$cur" ) ) COMPREPLY=( $( compgen -W '-b -d -g -p -s -t -w -y -e -f -h -l -n -T -W' \
-- "$cur" ) )
} && } &&
complete -F _cowsay $default cowsay cowthink complete -F _cowsay $default cowsay cowthink
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -12,7 +12,9 @@ _cpan2dist()
case $prev in case $prev in
--format) --format)
# should remove ":" from COMP_WORDBREAKS, but doesn't work (?) # should remove ":" from COMP_WORDBREAKS, but doesn't work (?)
COMPREPLY=( $( compgen -W '$(perl -MCPANPLUS::Dist -e "print map { \"\$_\n\" } CPANPLUS::Dist->dist_types")' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$(perl -MCPANPLUS::Dist -e \
"print map { \"\$_\n\" } CPANPLUS::Dist->dist_types")' \
-- "$cur" ) )
return 0 return 0
;; ;;
--@(banlist|ignorelist|modulelist|logfile)) --@(banlist|ignorelist|modulelist|logfile))
@ -32,7 +34,8 @@ _cpan2dist()
else else
cpandirs=( "$HOME/.cpanplus/" "$HOME/.cpan/source/modules/" ) cpandirs=( "$HOME/.cpanplus/" "$HOME/.cpan/source/modules/" )
for dir in ${cpandirs[@]}; do for dir in ${cpandirs[@]}; do
[ -d "$dir" -a -r "$dir/02packages.details.txt.gz" ] && packagelist="$dir/02packages.details.txt.gz" [ -d "$dir" -a -r "$dir/02packages.details.txt.gz" ] && \
packagelist="$dir/02packages.details.txt.gz"
done done
COMPREPLY=( $( zgrep "^${cur//-/::}" \ COMPREPLY=( $( zgrep "^${cur//-/::}" \
$packagelist 2>/dev/null \ $packagelist 2>/dev/null \
@ -43,8 +46,8 @@ complete -F _cpan2dist $default cpan2dist
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -94,8 +94,8 @@ complete -F _cpio cpio
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -14,8 +14,8 @@ complete -F _cancel $filenames cancel
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -119,8 +119,7 @@ _cvs()
for i in "${entries[@]}"; do for i in "${entries[@]}"; do
files=( ${files[@]/#$i//} ) files=( ${files[@]/#$i//} )
done done
COMPREPLY=( $( compgen -X '*~' -W '${files[@]}' -- \ COMPREPLY=( $( compgen -X '*~' -W '${files[@]}' -- $cur ) )
$cur ) )
fi fi
else else
COMPREPLY=( $( compgen -W '-k -m' -- "$cur" ) ) COMPREPLY=( $( compgen -W '-k -m' -- "$cur" ) )
@ -128,10 +127,8 @@ _cvs()
;; ;;
admin) admin)
if [[ "$cur" = -* ]]; then if [[ "$cur" = -* ]]; then
COMPREPLY=( $( compgen -W '-i -a -A -e -b -c -k -l -u \ COMPREPLY=( $( compgen -W '-i -a -A -e -b -c -k -l -u -L -U -m -M \
-L -U -m -M -n -N -o -q -I \ -n -N -o -q -I -s -t -t- -T -V -x -z' -- $cur ) )
-s -t -t- -T -V -x -z' -- \
$cur ) )
fi fi
;; ;;
annotate) annotate)
@ -175,8 +172,7 @@ _cvs()
COMPREPLY=( $(compgen $default -- "$cur") ) COMPREPLY=( $(compgen $default -- "$cur") )
fi fi
else else
COMPREPLY=( $( compgen -W '-n -R -l -f -F -m -r' -- \ COMPREPLY=( $( compgen -W '-n -R -l -f -F -m -r' -- $cur ) )
$cur ) )
fi fi
;; ;;
cvsroot) cvsroot)
@ -192,8 +188,8 @@ _cvs()
COMPREPLY=( $( cvs -d "$cvsroot" co -c | awk '{print $1}' ) ) COMPREPLY=( $( cvs -d "$cvsroot" co -c | awk '{print $1}' ) )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) ) COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
else else
COMPREPLY=( $( compgen -W '-N -f -l -R -n \ COMPREPLY=( $( compgen -W '-N -f -l -R -n -r -D -d -k' \
-r -D -d -k' -- "$cur" ) ) -- "$cur" ) )
fi fi
;; ;;
diff) diff)
@ -231,8 +227,7 @@ _cvs()
fi fi
pwd=$( pwd ) pwd=$( pwd )
pwd=${pwd##*/} pwd=${pwd##*/}
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $pwd' -- \ COMPREPLY=( $( compgen -W '${COMPREPLY[@]} $pwd' -- $cur ) )
$cur ) )
else else
COMPREPLY=( $( compgen -W '-d -k -I -b -m -W' -- "$cur" )) COMPREPLY=( $( compgen -W '-d -k -I -b -m -W' -- "$cur" ))
fi fi
@ -240,8 +235,7 @@ _cvs()
update) update)
if [[ "$cur" = -* ]]; then if [[ "$cur" = -* ]]; then
COMPREPLY=( $( compgen -W '-A -P -C -d -f -l -R -p \ COMPREPLY=( $( compgen -W '-A -P -C -d -f -l -R -p \
-k -r -D -j -I -W' -- \ -k -r -D -j -I -W' -- "$cur" ) )
"$cur" ) )
fi fi
;; ;;
"") "")
@ -265,8 +259,8 @@ complete -F _cvs $default cvs
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -12,14 +12,15 @@ _dcop()
else else
compstr=$( command echo ${COMP_WORDS[*]} | sed "s/ $cur$//" ) compstr=$( command echo ${COMP_WORDS[*]} | sed "s/ $cur$//" )
fi fi
COMPREPLY=( $( compgen -W '$( command $compstr | sed s/\(.*\)// )' -- "$cur" ) ) COMPREPLY=( $( compgen -W '$( command $compstr | sed s/\(.*\)// )' \
-- "$cur" ) )
} && } &&
complete -F _dcop dcop complete -F _dcop dcop
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -17,8 +17,7 @@ _dd()
conv=*) conv=*)
cur=${cur#*=} cur=${cur#*=}
COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock \ COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock \
lcase notrunc ucase swab noerror sync' \ lcase notrunc ucase swab noerror sync' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -33,8 +32,8 @@ complete -F _dd $nospace $filenames dd
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -30,8 +30,8 @@ complete -F _dhclient dhclient
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -71,8 +71,8 @@ complete -F _dict $default dict rdict
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -61,7 +61,6 @@ _dpkg()
return 0 return 0
;; ;;
*) *)
COMPREPLY=( $( compgen -W '-i --install --unpack -A --record-avail \ COMPREPLY=( $( compgen -W '-i --install --unpack -A --record-avail \
--configure -r --remove -P --purge --get-selections \ --configure -r --remove -P --purge --get-selections \
--set-selections --update-avail --merge-avail \ --set-selections --update-avail --merge-avail \
@ -122,9 +121,8 @@ _dpkg_reconfigure()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-f --frontend -p --priority -a --all \ COMPREPLY=( $( compgen -W '-f --frontend -p --priority -a --all -u \
-u --unseen-only -h --help -s --showold \ --unseen-only -h --help -s --showold --force --terse' -- "$cur" ) )
--force --terse' -- "$cur" ) )
else else
COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) ) COMPREPLY=( $( _comp_dpkg_installed_packages "$cur" ) )
fi fi
@ -263,8 +261,8 @@ complete -F _dpkg_source dpkg-source
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -14,7 +14,6 @@ _dselect()
_filedir -d _filedir -d
return 0 return 0
;; ;;
-@(D|debug)) -@(D|debug))
_filedir _filedir
return 0 return 0
@ -36,8 +35,8 @@ complete -F _dselect $filenames dselect
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -83,8 +83,7 @@ _dsniff()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-c -d -m -n -i -s -f -t \ COMPREPLY=( $( compgen -W '-c -d -m -n -i -s -f -t -r -w' -- "$cur" ) )
-r -w' -- "$cur" ) )
fi fi
} && } &&
@ -281,8 +280,8 @@ complete -F _webmitm webmitm
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -23,7 +23,8 @@ _find()
-fstype) -fstype)
# this is highly non-portable # this is highly non-portable
[ -e /proc/filesystems ] && [ -e /proc/filesystems ] &&
COMPREPLY=( $( compgen -W "$( cut -d$'\t' -f2 /proc/filesystems )" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$( cut -d$'\t' -f2 /proc/filesystems )" \
-- "$cur" ) )
return 0 return 0
;; ;;
-gid) -gid)
@ -114,8 +115,8 @@ complete -F _find $filenames find
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -19,8 +19,7 @@ _civserver()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-d -f -g -h -i -l -m -M -p -q -r -v\ COMPREPLY=( $( compgen -W '-d -f -g -h -i -l -m -M -p -q -r -v\
--debug --file --gamelog --help --info --log --meta \ --debug --file --gamelog --help --info --log --meta \
--Metaserver --port --quitidle --read --version' \ --Metaserver --port --quitidle --read --version' -- "$cur" ) )
-- "$cur" ) )
fi fi
} && } &&
@ -54,9 +53,8 @@ _civclient()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-a -d -h -l -m -n -p -P -s -S -t -v\ COMPREPLY=( $( compgen -W '-a -d -h -l -m -n -p -P -s -S -t -v\
--autoconnect --debug --help --log --meta --name \ --autoconnect --debug --help --log --meta --name --port \
--port --Plugin --server --Sound --tiles --version' \ --Plugin --server --Sound --tiles --version' -- "$cur" ) )
-- "$cur" ) )
fi fi
} && } &&
@ -64,8 +62,8 @@ complete -F _civclient civclient
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -52,8 +52,8 @@ complete $filenames -F _gcc gcc g++ c++ g77 gcj gpc
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -12,8 +12,7 @@ _gcl()
# completing an option (may or may not be separated by a space) # completing an option (may or may not be separated by a space)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-eval -load -f -batch -dir -libdir \ COMPREPLY=( $( compgen -W '-eval -load -f -batch -dir -libdir \
-compile -o-file -c-file -h-file -data-file -system-p '\ -compile -o-file -c-file -h-file -data-file -system-p '-- "$cur" ) )
-- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -24,8 +23,8 @@ complete -F _gcl $default gcl
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -23,22 +23,21 @@ _gdb()
local path_array=( $(echo "$PATH" | sed 's/::\+/:/g;s/^:\|:$//g') ) local path_array=( $(echo "$PATH" | sed 's/::\+/:/g;s/^:\|:$//g') )
IFS=$'\n' IFS=$'\n'
COMPREPLY=( $( compgen -d -W '$(find "${path_array[@]}" . \ COMPREPLY=( $( compgen -d -W '$(find "${path_array[@]}" . \
-mindepth 1 -maxdepth 1 -not -type d -executable -printf "%f\\n" 2>/dev/null)' \ -mindepth 1 -maxdepth 1 -not -type d -executable \
-- "$cur" ) ) -printf "%f\\n" 2>/dev/null)' -- "$cur" ) )
fi fi
elif [ $COMP_CWORD -eq 2 ]; then elif [ $COMP_CWORD -eq 2 ]; then
prev=${prev##*/} prev=${prev##*/}
COMPREPLY=( $( compgen -fW "$( command ps axo comm,pid | \ COMPREPLY=( $( compgen -fW "$( command ps axo comm,pid | \
awk '{if ($1 ~ /^'"$prev"'/) print $2}' )" \ awk '{if ($1 ~ /^'"$prev"'/) print $2}' )" -- "$cur" ) )
-- "$cur" ) )
fi fi
} && } &&
complete -F _gdb $default gdb complete -F _gdb $default gdb
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -72,8 +72,8 @@ complete -F _mkisofs $filenames mkisofs genisoimage
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -40,18 +40,17 @@ _getent()
if [ $COMP_CWORD -eq 1 ]; then if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W 'passwd group hosts services \ COMPREPLY=( $( compgen -W 'passwd group hosts services protocols \
protocols networks ahosts ahostsv4 \ networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc \
ahostsv6 aliases ethers netgroup \ shadow' -- "$cur" ) )
rpc shadow' -- "$cur" ) )
fi fi
} && } &&
complete -F _getent getent complete -F _getent getent
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -27,8 +27,7 @@ _gkrellm()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help -t --theme -s --server \ COMPREPLY=( $( compgen -W '--help -t --theme -s --server \
-g --geometry -wm -w --withdrawn -c --config -nc \ -g --geometry -wm -w --withdrawn -c --config -nc \
-f --force-host-config -demo -p --plugin -P \ -f --force-host-config -demo -p --plugin -P --port' -- "$cur" ) )
--port' -- "$cur" ) )
fi fi
} && } &&
@ -36,8 +35,8 @@ complete -F _gkrellm gkrellm gkrellm2
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -24,15 +24,14 @@ _gnatmake()
else else
# source file completion # source file completion
_filedir '@(adb|ads)' _filedir '@(adb|ads)'
fi fi
} && } &&
complete -F _gnatmake $filenames gnatmake complete -F _gnatmake $filenames gnatmake
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -16,13 +16,17 @@ _gpg()
;; ;;
--@(export|@(?(l|nr|nrl)sign|edit)-key)) --@(export|@(?(l|nr|nrl)sign|edit)-key))
# return list of public keys # return list of public keys
COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | sed -ne 's@^pub.*/\([^ ]*\).*$@\1@p;s@^.*\(<\([^>]*\)>\).*$@\2@p')" -- "$cur" )) COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | \
sed -ne 's@^pub.*/\([^ ]*\).*$@\1@p;s@^.*\(<\([^>]*\)>\).*$@\2@p')" -- "$cur" ))
return 0 return 0
;; ;;
-@(r|-recipient)) -@(r|-recipient))
COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" )) COMPREPLY=( $( compgen -W "$( gpg --list-keys 2>/dev/null | \
sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" ))
if [ -e ~/.gnupg/gpg.conf ]; then if [ -e ~/.gnupg/gpg.conf ]; then
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$( sed -ne 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' ~/.gnupg/gpg.conf )" -- "$cur") ) COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$( sed -ne \
's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
~/.gnupg/gpg.conf )" -- "$cur") )
fi fi
return 0 return 0
;; ;;
@ -38,8 +42,8 @@ complete -F _gpg $default gpg
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -20,13 +20,17 @@ _gpg2 ()
;; ;;
--@(export|@(?(l|nr|nrl)sign|edit)-key)) --@(export|@(?(l|nr|nrl)sign|edit)-key))
# return list of public keys # return list of public keys
COMPREPLY=( $( compgen -W "$( gpg2 --list-keys 2>/dev/null | sed -ne 's@^pub.*/\([^ ]*\).*$@\1@p;s@^.*\(<\([^>]*\)>\).*$@\2@p')" -- "$cur" )) COMPREPLY=( $( compgen -W "$( gpg2 --list-keys 2>/dev/null | \
sed -ne 's@^pub.*/\([^ ]*\).*$@\1@p;s@^.*\(<\([^>]*\)>\).*$@\2@p')" -- "$cur" ))
return 0 return 0
;; ;;
-@(r|-recipient)) -@(r|-recipient))
COMPREPLY=( $( compgen -W "$( gpg2 --list-keys 2>/dev/null | sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" )) COMPREPLY=( $( compgen -W "$( gpg2 --list-keys 2>/dev/null | \
sed -ne 's@^.*<\([^>]*\)>.*$@\1@p')" -- "$cur" ))
if [ -e ~/.gnupg/gpg.conf ]; then if [ -e ~/.gnupg/gpg.conf ]; then
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$( sed -ne 's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' ~/.gnupg/gpg.conf)" -- "$cur")) COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$( sed -ne \
's@^[ \t]*group[ \t][ \t]*\([^=]*\).*$@\1@p' \
~/.gnupg/gpg.conf)" -- "$cur"))
fi fi
return 0 return 0
;; ;;
@ -42,8 +46,8 @@ complete -F _gpg2 $default gpg2
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -11,8 +11,7 @@ _gzip()
helpopts=`_parse_help gzip` helpopts=`_parse_help gzip`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$helpopts -2 -3 -4 -5 -6 -7 -8" \ COMPREPLY=( $( compgen -W "$helpopts -2 -3 -4 -5 -6 -7 -8" -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
fi fi
@ -42,8 +41,8 @@ complete -F _gzip $filenames gzip
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -1,13 +0,0 @@
# harbour completion by Dave Pearson <davep@davep.org>
# http://www.harbour-project.org/
complete -f -X '!*.@([Pp][Rr][Gg]|[Cc][Ll][Pp])' harbour gharbour hbpp
complete -f -X '!*.[Hh][Rr][Bb]' hbrun
# Local variables:
# mode: shell-script
# sh-basic-offset: 8
# sh-indent-comment: t
# indent-tabs-mode: t
# End:
# ex: ts=8 sw=8 noet filetype=sh

View File

@ -23,7 +23,6 @@ _heimdal_encodings()
aes256-cts-hmac-sha1-96' -- "$cur" ) ) aes256-cts-hmac-sha1-96' -- "$cur" ) )
} }
_ktutil() _ktutil()
{ {
local cur prev command options split=false local cur prev command options split=false
@ -79,18 +78,15 @@ _ktutil()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
case $command in case $command in
add) add)
options='-p --principal -V -e --enctype -w \ options='-p --principal -V -e --enctype -w --password -r \
--password -r --random -s --no-salt \ --random -s --no-salt -h --hex'
-h --hex'
;; ;;
change) change)
options='-r --realm -a --admin-server -s \ options='-r --realm -a --admin-server -s --server-port'
--server-port'
;; ;;
get) get)
options='-p --principal -e --enctype -r \ options='-p --principal -e --enctype -r --realm -a \
--realm -a --admin-server -s server \ --admin-server -s server --server-port'
--server-port'
;; ;;
list) list)
options='--keys --timestamp' options='--keys --timestamp'
@ -105,8 +101,7 @@ _ktutil()
options='-s --srvtab' options='-s --srvtab'
;; ;;
*) *)
options='-k --keytab -v --verbose --version \ options='-k --keytab -v --verbose --version -v --help'
-v --help'
;; ;;
esac esac
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
@ -132,8 +127,8 @@ complete -F _ktutil ktutil
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -28,8 +28,8 @@ complete -F _iconv $default iconv
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -24,8 +24,7 @@ _ImageMagick()
-compose) -compose)
COMPREPLY=( $( compgen -W 'Over In Out Atop Xor Plus \ COMPREPLY=( $( compgen -W 'Over In Out Atop Xor Plus \
Minus Add Subtract Difference Multiply Bumpmap\ Minus Add Subtract Difference Multiply Bumpmap\
Copy CopyRed CopyGreen CopyBlue CopyOpacity' \ Copy CopyRed CopyGreen CopyBlue CopyOpacity' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-compress) -compress)
@ -34,8 +33,8 @@ _ImageMagick()
return 0 return 0
;; ;;
-dispose) -dispose)
COMPREPLY=( $( compgen -W 'Undefined None Background \ COMPREPLY=( $( compgen -W 'Undefined None Background Previous' \
Previous' -- "$cur" ) ) -- "$cur" ) )
return 0 return 0
;; ;;
-encoding) -encoding)
@ -51,21 +50,18 @@ _ImageMagick()
-filter) -filter)
COMPREPLY=( $( compgen -W 'Point Box Triangle Hermite \ COMPREPLY=( $( compgen -W 'Point Box Triangle Hermite \
Hanning Hamming Blackman Gaussian Quadratic \ Hanning Hamming Blackman Gaussian Quadratic \
Cubic Catrom Mitchell Lanczos Bessel Sinc' \ Cubic Catrom Mitchell Lanczos Bessel Sinc' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-format) -format)
COMPREPLY=( $( compgen -W "$( convert -list format | \ COMPREPLY=( $( compgen -W "$( convert -list format | \
awk '/ [r-][w-][+-] / {print $1}' | \ awk '/ [r-][w-][+-] / {print $1}' | \
tr -d '*' | tr [:upper:] [:lower:] )" \ tr -d '*' | tr [:upper:] [:lower:] )" -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-gravity) -gravity)
COMPREPLY=( $( compgen -W 'Northwest North NorthEast \ COMPREPLY=( $( compgen -W 'Northwest North NorthEast \
West Center East SouthWest South SouthEast' \ West Center East SouthWest South SouthEast' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-intent) -intent)
@ -74,29 +70,26 @@ _ImageMagick()
return 0 return 0
;; ;;
-interlace) -interlace)
COMPREPLY=( $( compgen -W 'None Line Plane Partition' \ COMPREPLY=( $( compgen -W 'None Line Plane Partition' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-limit) -limit)
COMPREPLY=( $( compgen -W 'Disk File Map Memory' \ COMPREPLY=( $( compgen -W 'Disk File Map Memory' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-list) -list)
COMPREPLY=( $( compgen -W 'Delegate Format Magic \ COMPREPLY=( $( compgen -W 'Delegate Format Magic Module Resource \
Module Resource Type' -- "$cur" ) ) Type' -- "$cur" ) )
return 0 return 0
;; ;;
-map) -map)
COMPREPLY=( $( compgen -W 'best default gray red \ COMPREPLY=( $( compgen -W 'best default gray red green blue' \
green blue' -- "$cur" ) ) -- "$cur" ) )
_filedir _filedir
return 0 return 0
;; ;;
-noise) -noise)
COMPREPLY=( $( compgen -W 'Uniform Gaussian \ COMPREPLY=( $( compgen -W 'Uniform Gaussian Multiplicative \
Multiplicative \
Impulse Laplacian Poisson' -- "$cur" ) ) Impulse Laplacian Poisson' -- "$cur" ) )
return 0 return 0
;; ;;
@ -107,8 +100,7 @@ _ImageMagick()
ReduceNoise AddNoise Sharpen Blur \ ReduceNoise AddNoise Sharpen Blur \
Treshold EdgeDetect Spread Shade \ Treshold EdgeDetect Spread Shade \
Raise Segment Solarize Swirl Implode \ Raise Segment Solarize Swirl Implode \
Wave OilPaint CharcoalDrawing JPEG' \ Wave OilPaint CharcoalDrawing JPEG' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-@(mask|profile|texture|tile|write)) -@(mask|profile|texture|tile|write))
@ -116,9 +108,8 @@ _ImageMagick()
return 0 return 0
;; ;;
-type) -type)
COMPREPLY=( $( compgen -W 'Bilevel Grayscale Palette \ COMPREPLY=( $( compgen -W 'Bilevel Grayscale Palette PaletteMatte \
PaletteMatte TrueColor TrueColorMatte \ TrueColor TrueColorMatte ColorSeparation ColorSeparationlMatte \
ColorSeparation ColorSeparationlMatte \
Optimize' -- "$cur" ) ) Optimize' -- "$cur" ) )
return 0 return 0
;; ;;
@ -128,14 +119,12 @@ _ImageMagick()
return 0 return 0
;; ;;
-virtual-pixel) -virtual-pixel)
COMPREPLY=( $( compgen -W 'Constant Edge mirror tile' \ COMPREPLY=( $( compgen -W 'Constant Edge mirror tile' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-visual) -visual)
COMPREPLY=( $( compgen -W 'StaticGray GrayScale \ COMPREPLY=( $( compgen -W 'StaticGray GrayScale StaticColor \
StaticColor PseudoColor TrueColor \ PseudoColor TrueColor DirectColor defaut visualid' -- "$cur" ))
DirectColor defaut visualid' -- "$cur" ))
return 0 return 0
;; ;;
esac esac
@ -324,7 +313,8 @@ _animate()
-trim -verbose -version -virtual-pixel -visual \ -trim -verbose -version -virtual-pixel -visual \
-window' -- "$cur" ) ) -window' -- "$cur" ) )
elif [[ "$cur" == +* ]]; then elif [[ "$cur" == +* ]]; then
COMPREPLY=( $( compgen -W '+debug +dither +gamma +map +matte' -- "$cur" ) ) COMPREPLY=( $( compgen -W '+debug +dither +gamma +map +matte' \
-- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -466,9 +456,8 @@ _conjure()
_ImageMagick _ImageMagick
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-debug -help -list -log -monitor \ COMPREPLY=( $( compgen -W '-debug -help -list -log -monitor -quiet \
-quiet -regard-warnings -seed -verbose \ -regard-warnings -seed -verbose -version' -- "$cur" ) )
-version' -- "$cur" ) )
elif [[ "$cur" == +* ]]; then elif [[ "$cur" == +* ]]; then
COMPREPLY=( $( compgen -W '+debug' -- "$cur" ) ) COMPREPLY=( $( compgen -W '+debug' -- "$cur" ) )
else else
@ -536,8 +525,8 @@ complete -F _stream $filenames stream
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -51,8 +51,8 @@ complete -F _info $filenames info
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -11,8 +11,7 @@ _ipmitool()
case "$prev" in case "$prev" in
-I) -I)
COMPREPLY=( $( compgen -W 'open imb lan lanplus free' \ COMPREPLY=( $( compgen -W 'open imb lan lanplus free' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -20,8 +19,7 @@ _ipmitool()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-h -V -v -c -d -I -H -p -U -f -S -a \ COMPREPLY=( $( compgen -W '-h -V -v -c -d -I -H -p -U -f -S -a \
-e -C -k -y -K -A -P -E -K -m -b -r -B -T -l -o -O' \ -e -C -k -y -K -A -P -E -K -m -b -r -B -T -l -o -O' -- "$cur" ) )
-- "$cur" ) )
else else
COMPREPLY=( $( compgen -W 'raw i2c spd lan chassis power event \ COMPREPLY=( $( compgen -W 'raw i2c spd lan chassis power event \
mc sdr sensor fru gendev sel pef sol tsol isol user \ mc sdr sensor fru gendev sel pef sol tsol isol user \
@ -34,8 +32,8 @@ complete -F _ipmitool ipmitool
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -63,8 +63,8 @@ complete -F _iptables iptables
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -6,14 +6,15 @@ _isql()
local cur local cur
cur=`_get_cword` cur=`_get_cword`
[ -f "$ODBCINI" ] && COMPREPLY=( $( grep \\["$cur" "$ODBCINI" | tr -d \\[\\] ) ) [ -f "$ODBCINI" ] \
&& COMPREPLY=( $( grep \\["$cur" "$ODBCINI" | tr -d \\[\\] ) )
} && } &&
complete -F _isql isql complete -F _isql isql
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -29,8 +29,8 @@ complete -F _jar $filenames jar
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -208,8 +208,7 @@ _javadoc()
-nosince -nodeprecatedlist -notree -noindex \ -nosince -nodeprecatedlist -notree -noindex \
-nohelp -nonavbar -quiet -serialwarn -tag \ -nohelp -nonavbar -quiet -serialwarn -tag \
-taglet -tagletpath -charset -helpfile \ -taglet -tagletpath -charset -helpfile \
-linksource -stylesheetfile -docencoding' -- \ -linksource -stylesheetfile -docencoding' -- "$cur" ) )
"$cur" ) )
else else
# source files completion # source files completion
_filedir java _filedir java
@ -254,8 +253,8 @@ complete -F _javac $filenames javac
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -31,8 +31,8 @@ complete -F _kldunload $filenames kldunload
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -12,24 +12,28 @@ _larch()
if [ $COMP_CWORD -eq 1 ] || [[ "$prev" == -* ]]; then if [ $COMP_CWORD -eq 1 ] || [[ "$prev" == -* ]]; then
COMPREPLY=( $( compgen -W ' \ COMPREPLY=( $( compgen -W ' \
my-id my-default-archive register-archive whereis-archive archives \ my-id my-default-archive register-archive whereis-archive archives \
init-tree tree-root tree-version set-tree-version inventory tagging-method \ init-tree tree-root tree-version set-tree-version inventory \
tree-lint missing-tags add delete move explicit-default set-manifest \ tagging-method tree-lint missing-tags add delete \
manifest check-manifest mkpatch dopatch patch-report empty-patch \ move explicit-default set-manifest manifest check-manifest mkpatch \
make-archive make-category make-branch make-version categories \ dopatch patch-report empty-patch make-archive make-category \
branches versions revisions cat-archive-log archive-cache-revision \ make-branch make-version categories branches versions revisions \
archive-cached-revisions archive-uncache-revision category-readme \ cat-archive-log archive-cache-revision archive-cached-revisions \
branch-readme version-readme make-log logs add-log log-ls cat-log \ archive-uncache-revision category-readme branch-readme \
log-header-field changelog log-for-merge merge-points new-on-branch \ version-readme make-log logs add-log log-ls cat-log \
import commit get get-patch lock-branch lock-revision push-mirror \ log-header-field changelog log-for-merge merge-points \
build-config update-config replay-config record-config show-config \ new-on-branch import commit get get-patch lock-branch \
config-history update replay delta-patch star-merge tag prepare-branch \ lock-revision push-mirror build-config update-config replay-config \
finish-branch join-branch whats-missing what-changed file-diffs pristines \ record-config show-config config-history update replay delta-patch \
lock-pristine my-revision-library library-find library-add library-remove \ star-merge tag prepare-branch finish-branch join-branch \
library-archives library-categories library-branches library-versions \ whats-missing what-changed file-diffs pristines lock-pristine \
library-revisions library-log library-file touched-files-prereqs \ my-revision-library library-find library-add library-remove \
patch-set-web update-distributions distribution-name notify my-notifier \ library-archives library-categories library-branches \
mail-new-categories mail-new-branches mail-new-versions mail-new-revisions \ library-versions library-revisions library-log library-file \
notify-library notify-browser push-new-revisions sendmail-mailx' "$cur" )) touched-files-prereqs patch-set-web update-distributions \
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" ))
fi fi
return 0 return 0
@ -38,8 +42,8 @@ complete -F _larch $default larch
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -24,8 +24,7 @@ _ldapvi()
return 0 return 0
;; ;;
--bind-dialog) --bind-dialog)
COMPREPLY=( $( compgen -W 'never auto always' \ COMPREPLY=( $( compgen -W 'never auto always' -- $cur ) )
-- $cur ) )
return 0 return 0
;; ;;
--scope) --scope)
@ -33,13 +32,12 @@ _ldapvi()
return 0 return 0
;; ;;
--deref) --deref)
COMPREPLY=( $( compgen -W 'never searching finding \ COMPREPLY=( $( compgen -W 'never searching finding always' \
always' -- "$cur" ) ) -- "$cur" ) )
return 0 return 0
;; ;;
--encoding) --encoding)
COMPREPLY=( $( compgen -W 'ASCII UTF-8 binary' \ COMPREPLY=( $( compgen -W 'ASCII UTF-8 binary' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
--tls) --tls)
@ -68,8 +66,8 @@ complete -F _ldapvi ldapvi
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -19,8 +19,8 @@ complete -F _lftp $default lftp
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -46,8 +46,7 @@ _lilo()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
# relevant options completion # relevant options completion
COMPREPLY=( $( compgen -W '-A -b -c -C -d -f -g -i -I -l -L -m \ COMPREPLY=( $( compgen -W '-A -b -c -C -d -f -g -i -I -l -L -m \
-M -p -P -q -r -R -s -S -t -T -u -U -v -V -w -x -z' -- \ -M -p -P -q -r -R -s -S -t -T -u -U -v -V -w -x -z' -- "$cur" ) )
"$cur" ) )
fi fi
} }
complete -F _lilo lilo complete -F _lilo lilo
@ -55,8 +54,8 @@ complete -F _lilo lilo
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -1,11 +0,0 @@
# lilypond completion by Laurent Martelli <laurent@bearteam.org>
complete -f -X '!*.ly' lilypond ly2dvi
# Local variables:
# mode: shell-script
# sh-basic-offset: 8
# sh-indent-comment: t
# indent-tabs-mode: t
# End:
# ex: ts=8 sw=8 noet filetype=sh

View File

@ -14,10 +14,9 @@ _links()
;; ;;
-*) -*)
COMPREPLY=( $( compgen -W '-async-dns -max-connections \ COMPREPLY=( $( compgen -W '-async-dns -max-connections \
-max-connections-to-host -retries \ -max-connections-to-host -retries -receive-timeout \
-receive-timeout -unrestartable-receive-timeout\ -unrestartable-receive-timeout -format-cache-size \
-format-cache-size -memory-cache-size \ -memory-cache-size -http-proxy -ftp-proxy -download-dir \
-http-proxy -ftp-proxy -download-dir \
-assume-codepage -anonymous -dump -no-connect \ -assume-codepage -anonymous -dump -no-connect \
-source -version -help' -- "$cur" ) ) -source -version -help' -- "$cur" ) )
;; ;;
@ -37,8 +36,8 @@ complete -F _links $filenames links
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -12,8 +12,7 @@ _lisp()
# completing an option (may or may not be separated by a space) # completing an option (may or may not be separated by a space)
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init \ COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init \
-dynamic-space-size -hinit -noinit -nositeinit -load \ -dynamic-space-size -hinit -noinit -nositeinit -load -slave ' \
-slave ' \
-- "$cur" ) ) -- "$cur" ) )
else else
_filedir _filedir
@ -25,8 +24,8 @@ complete -F _lisp $default lisp
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -370,11 +370,10 @@ _vgcreate()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-A --autobackup --addtag \ COMPREPLY=( $( compgen -W '-A --autobackup --addtag --alloc -d \
--alloc -d --debug -h --help -l --maxlogicalvolumes \ --debug -h --help -l --maxlogicalvolumes -M --metadatatype -p \
-M --metadatatype -p --maxphysicalvolumes -s \ --maxphysicalvolumes -s --physicalextentsize -t --test -v \
--physicalextentsize -t --test -v --verbose \ --verbose --version' -- "$cur" ) )
--version' -- "$cur" ) )
else else
_args _args
if [ $args -eq 0 ]; then if [ $args -eq 0 ]; then
@ -629,9 +628,8 @@ _vgmerge()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-A --autobackup -d --debug \ COMPREPLY=( $( compgen -W '-A --autobackup -d --debug -h --help -l \
-h --help -l --list -t --test -v --verbose \ --list -t --test -v --verbose --version' -- "$cur" ) )
--version' -- "$cur" ) )
else else
_volumegroups _volumegroups
fi fi
@ -713,11 +711,9 @@ _lvs()
case "$prev" in case "$prev" in
-@(o|O|-options|-sort)) -@(o|O|-options|-sort))
COMPREPLY=( $( compgen -W 'lv_uuid lv_name \ COMPREPLY=( $( compgen -W 'lv_uuid lv_name lv_attr lv_minor \
lv_attr lv_minor lv_size seg_count \ lv_size seg_count origin snap_percent segtype stripes \
origin snap_percent segtype stripes \ stripesize chunksize seg_start seg_size' -- "$cur" ) )
stripesize chunksize seg_start \
seg_size' -- "$cur" ) )
return 0 return 0
;; ;;
--units) --units)
@ -727,10 +723,9 @@ _lvs()
esac esac
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--aligned -d --debug \ COMPREPLY=( $( compgen -W '--aligned -d --debug -h --help \
-h --help --ignorelockingfailure --noheadings \ --ignorelockingfailure --noheadings --nosuffix -o --options -O \
--nosuffix -o --options -O --sort -P --partial \ --sort -P --partial --segments --separator --unbuffered --units \
--segments --separator --unbuffered --units \
-v --verbose --version' -- "$cur" ) ) -v --verbose --version' -- "$cur" ) )
else else
_logicalvolumes _logicalvolumes
@ -1126,8 +1121,8 @@ complete -F _lvm lvm
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -40,8 +40,8 @@ complete -F _lzma $filenames lzma
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -26,19 +26,35 @@ _lzop()
fi fi
case "$prev" in case "$prev" in
-o|--output) _filedir ; return 0 ;; -o|--output)
--path) _filedir -d ; return 0 ;; _filedir
-S|--suffix) return 0 ;; return 0
;;
--path)
_filedir -d
return 0
;;
-S|--suffix)
return 0
;;
esac esac
xspec="*.?(t)lzo" xspec="*.?(t)lzo"
case "$prev" in case "$prev" in
--@(@(de|un)compress|extract|list|ls|info|test)) --@(@(de|un)compress|extract|list|ls|info|test))
xspec="!"$xspec ;; xspec="!"$xspec
--force) xspec= ;; ;;
--*) ;; --force)
-*f*|'<'|'>') xspec= ;; xspec=
-*[dltx]*) xspec="!"$xspec ;; ;;
--*)
;;
-*f*|'<'|'>')
xspec=
;;
-*[dltx]*)
xspec="!"$xspec
;;
esac esac
_expand || return 0 _expand || return 0
@ -51,8 +67,8 @@ complete -F _lzop $filenames lzop
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -14,9 +14,8 @@ _list_lists()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-a --advertised \ COMPREPLY=( $( compgen -W '-a --advertised --virtual-host-overview -V \
--virtual-host-overview -V -b --bare \ -b --bare -h --help' -- "$cur" ) )
-h --help' -- "$cur" ) )
fi fi
} && } &&
@ -79,9 +78,8 @@ _remove_members()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--file -f --all -a \ COMPREPLY=( $( compgen -W '--file -f --all -a --fromall --nouserack -n \
--fromall --nouserack -n --noadminack -N \ --noadminack -N --help -h' -- "$cur" ) )
--help -h' -- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -110,8 +108,8 @@ _find_member()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-l --listname -x \ COMPREPLY=( $( compgen -W '-l --listname -x --exclude --owners -w \
--exclude --owners -w --help -h' -- "$cur" ) ) --help -h' -- "$cur" ) )
fi fi
} && } &&
@ -138,8 +136,8 @@ _clone_member()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-l --listname --remove -r \ COMPREPLY=( $( compgen -W '-l --listname --remove -r --admin -a \
--admin -a --quiet -q --nomodify -n --help -h' -- "$cur" ) ) --quiet -q --nomodify -n --help -h' -- "$cur" ) )
fi fi
} && } &&
@ -171,8 +169,8 @@ _sync_members()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--no-change -n --welcome-msg -w \ COMPREPLY=( $( compgen -W '--no-change -n --welcome-msg -w \
--goodbye-msg -g --digest -d --notifyadmin -a \ --goodbye-msg -g --digest -d --notifyadmin -a -f --file -h --help' \
-f --file -h --help' -- "$cur" ) ) -- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -206,8 +204,8 @@ _list_admins()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--all-vhost -v \ COMPREPLY=( $( compgen -W '--all-vhost -v --all -a -h --help' \
--all -a -h --help' -- "$cur" ) ) -- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -224,8 +222,8 @@ _list_owners()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-w --with-listnames \ COMPREPLY=( $( compgen -W '-w --with-listnames -m --moderators -h \
-m --moderators -h --help' -- "$cur" ) ) --help' -- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -254,7 +252,8 @@ _list_members()
return 0 return 0
;; ;;
-@(n|-nomail)) -@(n|-nomail))
COMPREPLY=( $( compgen -W 'byadmin byuser bybounce unknown' -- "$cur") ) COMPREPLY=( $( compgen -W 'byadmin byuser bybounce unknown' \
-- "$cur") )
return 0 return 0
;; ;;
esac esac
@ -262,9 +261,8 @@ _list_members()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--output -o --regular -r \ COMPREPLY=( $( compgen -W '--output -o --regular -r --digest -d \
--digest -d --nomail -n --fullnames -f \ --nomail -n --fullnames -f --preserve -p -h --help' -- "$cur" ) )
--preserve -p -h --help' -- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -327,7 +325,8 @@ _newlist()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-l --language -q --quiet -h --help' -- "$cur" ) ) COMPREPLY=( $( compgen -W '-l --language -q --quiet -h --help' \
-- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -344,8 +343,7 @@ _rmlist()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--archives -a \ COMPREPLY=( $( compgen -W '--archives -a -h --help' -- "$cur" ) )
-h --help' -- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -408,8 +406,8 @@ _arch()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--wipe -s --start -e --end \ COMPREPLY=( $( compgen -W '--wipe -s --start -e --end -q --quiet -h \
-q --quiet -h --help' -- "$cur" ) ) --help' -- "$cur" ) )
else else
args=$COMP_CWORD args=$COMP_CWORD
for (( i=1; i < COMP_CWORD; i++ )); do for (( i=1; i < COMP_CWORD; i++ )); do
@ -439,8 +437,8 @@ _cleanarch()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-s --status -n --dry-run \ COMPREPLY=( $( compgen -W '-s --status -n --dry-run -q --quiet -h \
-q --quiet -h --help' -- "$cur" ) ) --help' -- "$cur" ) )
fi fi
} && } &&
@ -467,8 +465,8 @@ _inject()
$split && return 0 $split && return 0
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-l --listname -q --queue \ COMPREPLY=( $( compgen -W '-l --listname -q --queue -h --help' \
-h --help' -- "$cur" ) ) -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -485,7 +483,8 @@ _dumpdb()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--marshal -m --pickle -p --noprint -n -h --help' -- "$cur" ) ) COMPREPLY=( $( compgen -W '--marshal -m --pickle -p --noprint -n -h \
--help' -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -502,8 +501,8 @@ _check_db()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--all -a --verbose -v \ COMPREPLY=( $( compgen -W '--all -a --verbose -v -h --help' \
-h --help' -- "$cur" ) ) -- "$cur" ) )
else else
_mailman_lists _mailman_lists
fi fi
@ -595,8 +594,8 @@ complete -F _mailmanctl mailmanctl
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -72,8 +72,8 @@ complete -F _make $filenames make gmake gnumake pmake
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -76,8 +76,8 @@ complete -F _man $filenames man apropos whatis
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -43,8 +43,8 @@ complete -F _mc $filenames mc
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -11,8 +11,7 @@ _mcrypt()
case "$prev" in case "$prev" in
-@(g|-openpgp-z)) -@(g|-openpgp-z))
COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9' \ COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-@(o|-keymode)) -@(o|-keymode))
@ -27,13 +26,13 @@ _mcrypt()
return 0 return 0
;; ;;
-@(a|-algorithm)) -@(a|-algorithm))
COMPREPLY=( $( compgen -W "$( mcrypt --list \ COMPREPLY=( $( compgen -W "$( mcrypt --list 2>/dev/null | \
2>/dev/null | awk '{print $1}' )" -- "$cur" ) ) awk '{print $1}' )" -- "$cur" ) )
return 0 return 0
;; ;;
-@(h|-hash)) -@(h|-hash))
COMPREPLY=( $( compgen -W '$( mcrypt --list-hash \ COMPREPLY=( $( compgen -W '$( mcrypt --list-hash 2>/dev/null | \
2>/dev/null | sed -e 1d )' -- "$cur" ) ) sed -e 1d )' -- "$cur" ) )
return 0 return 0
;; ;;
-@(k|s|-@(key?(size)))) -@(k|s|-@(key?(size))))
@ -79,8 +78,8 @@ complete $filenames -F _mcrypt mcrypt mdecrypt
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -20,10 +20,13 @@ _mdadm_raid_level()
case $mode in case $mode in
create) create)
COMPREPLY=( $( compgen -W 'linear raid0 0 stripe raid1 1 mirror raid4 4 raid5 5 raid6 6 raid10 10 multipath mp faulty' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'linear raid0 0 stripe raid1 1 mirror \
raid4 4 raid5 5 raid6 6 raid10 10 multipath mp faulty' \
-- "$cur" ) )
;; ;;
build) 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 esac
} }
@ -40,13 +43,16 @@ _mdadm_raid_layout()
case $level in case $level in
raid5) raid5)
COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric right-asymmetric right-symmetric la ra ls rs' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric \
right-asymmetric right-symmetric la ra ls rs' -- "$cur" ) )
;; ;;
raid10) raid10)
COMPREPLY=( $( compgen -W 'n o p' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'n o p' -- "$cur" ) )
;; ;;
faulty) faulty)
COMPREPLY=( $( compgen -W 'write-transient wt read-transient rt 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 esac
} }
@ -58,7 +64,8 @@ _mdadm_auto_flag()
_mdadm_update_flag() _mdadm_update_flag()
{ {
COMPREPLY=( $( compgen -W 'sparc2.2 summaries uuid name homehost resync byteorder super-minor' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'sparc2.2 summaries uuid name homehost resync \
byteorder super-minor' -- "$cur" ) )
} }
@ -122,28 +129,44 @@ _mdadm()
esac esac
fi fi
options='-h --help --help-options -V --version -v --verbose -q --quiet -b --brief -f --force -c --config= -s --scan -e --metadata= --homehost=' options='-h --help --help-options -V --version -v --verbose -q --quiet -b \
--brief -f --force -c --config= -s --scan -e --metadata= --homehost='
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
if [[ $COMP_CWORD -eq 1 ]] ; then if [[ $COMP_CWORD -eq 1 ]] ; then
COMPREPLY=( $( compgen -W "$options -A --assemble -B --build -C --create -F --follow --monitor -G --grow" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options -A --assemble -B --build -C \
--create -F --follow --monitor -G --grow" -- "$cur" ) )
else else
case ${COMP_WORDS[COMP_CWORD-1]} in case ${COMP_WORDS[COMP_CWORD-1]} in
-@(A|-assemble)) -@(A|-assemble))
COMPREPLY=( $( compgen -W "$options -u --uuid= -m --super-minor= -N --name= -f --force -R --run --no-degraded -a --auto -b --bitmap= --backup-file= -U --update= --auto-update-homehost" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options -u --uuid= -m \
--super-minor= -N --name= -f --force -R --run \
--no-degraded -a --auto -b --bitmap= --backup-file= \
-U --update= --auto-update-homehost" -- "$cur" ) )
;; ;;
-@(B|C|G|-build|-create|-grow)) -@(B|C|G|-build|-create|-grow))
COMPREPLY=( $( compgen -W "$options -n --raid-devices= -x --spare-devices= -z --size= -c --chunk= --rounding= -l --level= -p --layout= --parity= -b --bitmap= --bitmap-chunk= -W --write-mostly --write-behind= --assume-clean --backup-file= -N --name= -R --run -f --force -a --auto" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options -n --raid-devices= -x \
--spare-devices= -z --size= -c --chunk= --rounding= -l \
--level= -p --layout= --parity= -b --bitmap= \
--bitmap-chunk= -W --write-mostly --write-behind= \
--assume-clean --backup-file= -N --name= -R --run -f \
--force -a --auto" -- "$cur" ) )
;; ;;
-@(F|-follow|-monitor)) -@(F|-follow|-monitor))
COMPREPLY=( $( compgen -W "$options -m --mail -p --program --alert -y --syslog -d --delay -f --daemonise -i --pid-file -1 --oneshot -t --test" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options -m --mail -p --program \
--alert -y --syslog -d --delay -f --daemonise -i \
--pid-file -1 --oneshot -t --test" -- "$cur" ) )
;; ;;
@(/dev/*|--add|--fail|--remove)) @(/dev/*|--add|--fail|--remove))
COMPREPLY=( $( compgen -W "$options -a --add --re-add -r --remove -f --fail --set-faulty" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options -a --add --re-add -r \
--remove -f --fail --set-faulty" -- "$cur" ) )
;; ;;
*) *)
COMPREPLY=( $( compgen -W "$options -Q --query -D --detail -E --examine --sparc2.2 -X --examine-bitmap -R --run -S --stop -o --readonly -w --readwrite --zero-superblock -t --test" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options -Q --query -D --detail \
-E --examine --sparc2.2 -X --examine-bitmap -R --run \
-S --stop -o --readonly -w --readwrite \
--zero-superblock -t --test" -- "$cur" ) )
;; ;;
esac esac
fi fi
@ -157,8 +180,8 @@ complete -F _mdadm mdadm
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -20,7 +20,8 @@ _minicom()
;; ;;
-P) -P)
COMPREPLY=( $( command ls /dev/tty* ) ) COMPREPLY=( $( command ls /dev/tty* ) )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]} ${COMPREPLY[@]#/dev/}' -- "$cur" ) ) COMPREPLY=( $( compgen -W '${COMPREPLY[@]} ${COMPREPLY[@]#/dev/}' \
-- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -31,8 +32,10 @@ _minicom()
-c -S -d -p -C -T -7 -8' -- "$cur" ) ) -c -S -d -p -C -T -7 -8' -- "$cur" ) )
return 0 return 0
else else
[ -n "$( command ls /etc/minirc.* 2>/dev/null)" ] && confdir=/etc [ -n "$( command ls /etc/minirc.* 2>/dev/null)" ] \
[ -n "$( command ls /etc/minicom/minirc.* 2>/dev/null)" ] && confdir=/etc/minicom && confdir=/etc
[ -n "$( command ls /etc/minicom/minirc.* 2>/dev/null)" ] \
&& confdir=/etc/minicom
if [ -n "$confdir" ]; then if [ -n "$confdir" ]; then
COMPREPLY=( $( compgen -W '$( command ls $confdir/minirc.* | \ COMPREPLY=( $( compgen -W '$( command ls $confdir/minirc.* | \
sed -e "s|$confdir/minirc.||")' -- "$cur" ) ) sed -e "s|$confdir/minirc.||")' -- "$cur" ) )
@ -44,8 +47,8 @@ complete -F _minicom $default minicom
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -53,8 +53,8 @@ complete -F _mkinitrd mkinitrd
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -29,8 +29,7 @@ _mock()
return 0 return 0
;; ;;
-r|--root) -r|--root)
COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" \ COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" -- $cur ) )
-- $cur ) )
COMPREPLY=( ${COMPREPLY[@]/%.cfg/} ) COMPREPLY=( ${COMPREPLY[@]/%.cfg/} )
return 0 return 0
;; ;;
@ -47,7 +46,9 @@ _mock()
# (e.g. ix86 chroot builds in x86_64 mock host) # (e.g. ix86 chroot builds in x86_64 mock host)
# This would actually depend on what the target root # This would actually depend on what the target root
# can be used to build for... # can be used to build for...
COMPREPLY=( $( compgen -W "$( command rpm --showrc | sed -ne 's/^\s*compatible\s\+archs\s*:\s*\(.*\)/\1/i p' )" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$( command rpm --showrc | \
sed -ne 's/^\s*compatible\s\+archs\s*:\s*\(.*\)/\1/i p' )" \
-- "$cur" ) )
return 0 return 0
;; ;;
--@(en|dis)able-plugin) --@(en|dis)able-plugin)
@ -77,8 +78,8 @@ complete -F _mock $filenames mock
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -57,12 +57,10 @@ _module () {
COMPREPLY=( $(compgen -W "$options" -- "$cur") ) COMPREPLY=( $(compgen -W "$options" -- "$cur") )
elif [ $COMP_CWORD -eq 2 ] ; then elif [ $COMP_CWORD -eq 2 ] ; then
case "$prev" in case "$prev" in
@(add|display|help|load|show|whatis)) @(add|display|help|load|show|whatis))
COMPREPLY=( $(_module_avail "$cur") ) COMPREPLY=( $(_module_avail "$cur") )
;; ;;
@(rm|switch|swap|unload|update)) @(rm|switch|swap|unload|update))
COMPREPLY=( $(_module_list "$cur") ) COMPREPLY=( $(_module_list "$cur") )
;; ;;
@ -84,8 +82,8 @@ complete -F _module $default module
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -7,13 +7,8 @@ _monodevelop()
cur=`_get_cword` cur=`_get_cword`
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-? -help \ COMPREPLY=( $( compgen -W '-? -help -help2 -ipc-tcp -newwindow -nologo \
-help2 \ -usage -V -version' -- "$cur" ) )
-ipc-tcp \
-newwindow \
-nologo \
-usage \
-V -version' -- "$cur" ) )
else else
_filedir _filedir
fi fi
@ -40,7 +35,8 @@ _mdtool()
if [[ -n "$command" ]]; then if [[ -n "$command" ]]; then
case $command in case $command in
"build") "build")
COMPREPLY=( $( compgen -W '--f --buildfile --p --project' -S":" -- "$cur" ) ) COMPREPLY=( $( compgen -W '--f --buildfile --p --project' \
-S":" -- "$cur" ) )
# TODO: This does not work :( # TODO: This does not work :(
#if [[ "$prev" == *: ]]; then #if [[ "$prev" == *: ]]; then
# case "$prev" in # case "$prev" in
@ -57,37 +53,25 @@ _mdtool()
"generate-makefiles") "generate-makefiles")
COMPREPLY=( $( compgen $filenames -G"*.mds" -- "$cur" ) ) COMPREPLY=( $( compgen $filenames -G"*.mds" -- "$cur" ) )
if [[ "$prev" == *mds ]]; then if [[ "$prev" == *mds ]]; then
COMPREPLY=( $( compgen -W '--simple-makefiles --s --d:' -- "$cur" ) ) COMPREPLY=( $( compgen -W '--simple-makefiles --s --d:' \
-- "$cur" ) )
fi fi
return 0 return 0
;; ;;
"setup") "setup")
# TODO: at least return filenames after these options. # TODO: at least return filenames after these options.
COMPREPLY=( $( compgen -W 'install i \ COMPREPLY=( $( compgen -W 'install i uninstall u check-install \
uninstall u \ ci update up list l list-av la list-update lu rep-add ra \
check-install ci \ rep-remove rr rep-update ru rep-list rl reg-update \
update up \ reg-build rgu info rep-build rb pack p help h dump-file' \
list l \ -- "$cur" ) )
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 return 0
;; ;;
esac esac
fi fi
COMPREPLY=( $( compgen -W 'gsetup build dbgen project-export \ COMPREPLY=( $( compgen -W 'gsetup build dbgen project-export \
generate-makefiles gettext-update \ generate-makefiles gettext-update setup -q' -- "$cur" ) )
setup -q' -- "$cur" ) )
return 0 return 0
} && } &&
@ -95,8 +79,8 @@ complete -F _mdtool $filenames mdtool
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -104,39 +104,29 @@ _mplayer()
return 0 return 0
;; ;;
-lavdopts) -lavdopts)
COMPREPLY=( $( compgen -W 'ec er= bug= idct= gray' \ COMPREPLY=( $( compgen -W 'ec er= bug= idct= gray' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-lavcopts) -lavcopts)
COMPREPLY=( $( compgen -W 'vcodec= vqmin= vqscale= \ COMPREPLY=( $( compgen -W 'vcodec= vqmin= vqscale= vqmax= mbqmin= \
vqmax= mbqmin= mbqmax= vqdiff= \ mbqmax= vqdiff= vmax_b_frames= vme= vhq v4mv keyint= \
vmax_b_frames= vme= vhq v4mv \ vb_strategy= vpass= aspect= vbitrate= vratetol= vrc_maxrate= \
keyint= vb_strategy= vpass= \ vrc_minrate= vrc_buf_size= vb_qfactor= vi_qfactor= vb_qoffset= \
aspect= vbitrate= vratetol= \ vi_qoffset= vqblur= vqcomp= vrc_eq= vrc_override= \
vrc_maxrate= vrc_minrate= \ vrc_init_cplx= vqsquish= vlelim= vcelim= vstrict= vdpart \
vrc_buf_size= vb_qfactor= vi_qfactor= \ vpsize= gray vfdct= idct= lumi_mask= dark_mask= tcplx_mask= \
vb_qoffset= vi_qoffset= vqblur= \ scplx_mask= naq ildct format= pred qpel precmp= cmp= subcmp= \
vqcomp= vrc_eq= vrc_override= \ predia= dia= trell last_pred= preme= subq= psnr mpeg_quant aic \
vrc_init_cplx= vqsquish= vlelim= \ umv' -- "$cur" ) )
vcelim= vstrict= vdpart vpsize= gray \
vfdct= idct= lumi_mask= dark_mask= \
tcplx_mask= scplx_mask= naq ildct \
format= pred qpel precmp= cmp= \
subcmp= predia= dia= trell last_pred= \
preme= subq= psnr mpeg_quant aic umv' \
-- "$cur" ) )
return 0 return 0
;; ;;
-ssf) -ssf)
COMPREPLY=( $( compgen -W 'lgb= cgb= ls= cs= chs= \ COMPREPLY=( $( compgen -W 'lgb= cgb= ls= cs= chs= cvs=' -- "$cur" ) )
cvs=' -- "$cur" ) )
return 0 return 0
;; ;;
-jpeg) -jpeg)
COMPREPLY=( $( compgen -W 'noprogressive progressive \ COMPREPLY=( $( compgen -W 'noprogressive progressive nobaseline \
nobaseline baseline optimize= \ baseline optimize= smooth= quality= outdir=' -- "$cur" ) )
smooth= quality= outdir=' -- "$cur" ) )
return 0 return 0
;; ;;
-xvidopts) -xvidopts)
@ -144,99 +134,80 @@ _mplayer()
return 0 return 0
;; ;;
-xvidencopts) -xvidencopts)
COMPREPLY=( $( compgen -W 'pass= bitrate= \ COMPREPLY=( $( compgen -W 'pass= bitrate= fixed_quant= me_quality= \
fixed_quant= me_quality= 4mv \ 4mv rc_reaction_delay_factor= rc_averaging_period= rc_buffer= \
rc_reaction_delay_factor= \ quant_range= min_key_interval= max_key_interval= mpeg_quant \
rc_averaging_period= rc_buffer= \ mod_quant lumi_mask hintedme hintfile debug keyframe_boost= \
quant_range= min_key_interval= \
max_key_interval= mpeg_quant \
mod_quant lumi_mask hintedme \
hintfile debug keyframe_boost= \
kfthreshold= kfreduction=' -- "$cur" ) ) kfthreshold= kfreduction=' -- "$cur" ) )
return 0 return 0
;; ;;
-divx4opts) -divx4opts)
COMPREPLY=( $( compgen -W 'br= key= deinterlace q= \ COMPREPLY=( $( compgen -W 'br= key= deinterlace q= min_quant= \
min_quant= max_quant= rc_period= \ max_quant= rc_period= rc_reaction_period= crispness= \
rc_reaction_period= crispness= \ rc_reaction_ratio= pass= vbrpass= help' -- "$cur" ) )
rc_reaction_ratio= pass= vbrpass= \
help' -- "$cur" ) )
return 0 return 0
;; ;;
-info) -info)
COMPREPLY=( $( compgen -W 'name= artist= genre= \ COMPREPLY=( $( compgen -W 'name= artist= genre= subject= \
subject= copyright= srcform= \ copyright= srcform= comment= help' -- "$cur" ) )
comment= help' -- "$cur" ) )
return 0 return 0
;; ;;
-lameopts) -lameopts)
COMPREPLY=( $( compgen -W 'vbr= abr cbr br= q= aq= \ COMPREPLY=( $( compgen -W 'vbr= abr cbr br= q= aq= ratio= vol= \
ratio= vol= mode= padding= fast \ mode= padding= fast preset= help' -- "$cur" ) )
preset= help' -- "$cur" ) )
return 0 return 0
;; ;;
-rawaudio) -rawaudio)
COMPREPLY=( $( compgen -W 'on channels= rate= \ COMPREPLY=( $( compgen -W 'on channels= rate= samplesize= format=' \
samplesize= format=' -- "$cur" ) )
return 0
;;
-rawvideo)
COMPREPLY=( $( compgen -W 'on fps= sqcif qcif cif \
4cif pal ntsc w= h= y420 yv12 yuy2 \
y8 format= size=' -- "$cur" ) )
return 0
;;
-aop)
COMPREPLY=( $( compgen -W 'list= delay= format= fout= \
volume= mul= softclip' -- "$cur" ) )
return 0
;;
-dxr2)
COMPREPLY=( $( compgen -W 'ar-mode= iec958-encoded \
iec958-decoded mute ucode= 75ire bw \
color interlaced macrovision= norm= \
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" ))
return 0
;;
-tv)
COMPREPLY=( $( compgen -W 'on noaudio driver= device= \
input= freq= outfmt= width= height= \
buffersize= norm= channel= chanlist= \
audiorate= forceaudio alsa amode= \
forcechan= adevice= audioid= volume= \
bass= treble= balance= fps= \
channels= immediatemode=' -- "$cur" ) )
return 0
;;
-mf)
COMPREPLY=( $( compgen -W 'on w= h= fps= type=' \
-- "$cur" ) ) -- "$cur" ) )
return 0 return 0
;; ;;
-rawvideo)
COMPREPLY=( $( compgen -W 'on fps= sqcif qcif cif 4cif pal ntsc w= \
h= y420 yv12 yuy2 y8 format= size=' -- "$cur" ) )
return 0
;;
-aop)
COMPREPLY=( $( compgen -W 'list= delay= format= fout= volume= mul= \
softclip' -- "$cur" ) )
return 0
;;
-dxr2)
COMPREPLY=( $( compgen -W 'ar-mode= iec958-encoded iec958-decoded \
mute ucode= 75ire bw color interlaced macrovision= norm= \
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" ))
return 0
;;
-tv)
COMPREPLY=( $( compgen -W 'on noaudio driver= device= input= freq= \
outfmt= width= height= buffersize= norm= channel= chanlist= \
audiorate= forceaudio alsa amode= forcechan= adevice= audioid= \
volume= bass= treble= balance= fps= channels= immediatemode=' \
-- "$cur" ) )
return 0
;;
-mf)
COMPREPLY=( $( compgen -W 'on w= h= fps= type=' -- "$cur" ) )
return 0
;;
-cdda) -cdda)
COMPREPLY=( $( compgen -W 'speed= paranoia= \ COMPREPLY=( $( compgen -W 'speed= paranoia= generic-dev= \
generic-dev= sector-size= overlap= \ sector-size= overlap= toc-bias toc-offset= skip noskip' \
toc-bias toc-offset= skip noskip' \
-- "$cur" ) ) -- "$cur" ) )
return 0 return 0
;; ;;
-input) -input)
COMPREPLY=( $( compgen -W 'conf= ar-delay ar-rate \ COMPREPLY=( $( compgen -W 'conf= ar-delay ar-rate keylist cmdlist \
keylist cmdlist js-dev file' -- "$cur" ) ) js-dev file' -- "$cur" ) )
return 0 return 0
;; ;;
-af) -af)
COMPREPLY=( $( compgen -W 'resample resample= \ COMPREPLY=( $( compgen -W 'resample resample= channels channels= \
channels channels= format format= \ format format= volume volume= delay delay= pan pan= sub sub= \
volume volume= delay delay= pan \ surround surround=' -- "$cur" ) )
pan= sub sub= surround surround=' \
-- "$cur" ) )
return 0 return 0
;; ;;
-af-adv) -af-adv)
@ -264,8 +235,8 @@ complete $filenames -F _mplayer mplayer mencoder gmplayer kplayer
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -48,8 +48,8 @@ complete -F _msynctool msynctool
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -45,8 +45,8 @@ complete -F _mtx mtx
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -53,8 +53,7 @@ _munin-update()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--force-root --[no]force-root \ COMPREPLY=( $( compgen -W '--force-root --[no]force-root \
--service --host --config --help --debug --nodebug \ --service --host --config --help --debug --nodebug \
--fork --nofork --stdout --nostdout --timeout' \ --fork --nofork --stdout --nostdout --timeout' -- "$cur" ) )
-- "$cur" ) )
fi fi
} && } &&
complete -F _munin-update munin-update complete -F _munin-update munin-update
@ -90,16 +89,15 @@ _munin-node-configure()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --version --debug --config \ COMPREPLY=( $( compgen -W '--help --version --debug --config \
--servicedir --libdir --families --suggest --shell \ --servicedir --libdir --families --suggest --shell \
--remove-also --snmp --snmpversion --snmpcommunity' \ --remove-also --snmp --snmpversion --snmpcommunity' -- "$cur" ) )
-- "$cur" ) )
fi fi
} && } &&
complete -F _munin-node-configure munin-node-configure complete -F _munin-node-configure munin-node-configure
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -63,8 +63,7 @@ _muttquery()
if [ -z "$cur" -o -z "$querycmd" ]; then if [ -z "$cur" -o -z "$querycmd" ]; then
queryresults=() queryresults=()
else else
queryresults=( $( $querycmd | \ queryresults=( $( $querycmd | sed -nr '2,$s|^([^[:space:]]+).*|\1|p' ) )
sed -nr '2,$s|^([^[:space:]]+).*|\1|p' ) )
fi fi
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "${queryresults[*]}" \ COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "${queryresults[*]}" \
@ -90,7 +89,8 @@ _muttfiledir()
COMPREPLY=( ${COMPREPLY[@]#$folder/} ) COMPREPLY=( ${COMPREPLY[@]#$folder/} )
return 0 return 0
elif [ "$cur" == !* ]; then elif [ "$cur" == !* ]; then
spoolfile="$( $muttcmd -Q spoolfile | sed -r 's|^spoolfile=\"(.*)\"$|\1|' )" spoolfile="$( $muttcmd -Q spoolfile | \
sed -r 's|^spoolfile=\"(.*)\"$|\1|' )"
[ ! -z "$spoolfile" ] && eval cur="${cur/^!/$spoolfile}"; [ ! -z "$spoolfile" ] && eval cur="${cur/^!/$spoolfile}";
fi fi
_filedir _filedir
@ -109,8 +109,7 @@ _mutt()
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n \ COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n \
-p -Q -R -s -v -x -y -z -Z -h' \ -p -Q -R -s -v -x -y -z -Z -h' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
*) *)
@ -140,8 +139,8 @@ complete -F _mutt $default $filenames mutt muttng
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -22,19 +22,17 @@ _mysqladmin()
-v -V -w' -- "$cur" ) ) -v -V -w' -- "$cur" ) )
COMPREPLY=( "${COMPREPLY[@]}" \ COMPREPLY=( "${COMPREPLY[@]}" \
$( compgen -W 'create drop extended-status flush-hosts \ $( compgen -W 'create drop extended-status flush-hosts flush-logs \
flush-logs flush-status flush-tables \ flush-status flush-tables flush-threads flush-privileges kill \
flush-threads flush-privileges kill \ password ping processlist reload refresh shutdown status variables \
password ping processlist reload refresh \ version' -- "$cur" ) )
shutdown status variables version' \
-- "$cur" ) )
} && } &&
complete -F _mysqladmin mysqladmin complete -F _mysqladmin mysqladmin
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -19,8 +19,8 @@ complete -F _ncftp $default ncftp
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -108,8 +108,8 @@ _route()
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -31,8 +31,8 @@ complete -F _ntpdate ntpdate
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -37,8 +37,7 @@ _ldapsearch()
return 0 return 0
;; ;;
-s) -s)
COMPREPLY=( $( compgen -W 'base one sub children' \ COMPREPLY=( $( compgen -W 'base one sub children' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-a) -a)
@ -127,8 +126,7 @@ _ldapdelete()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-n -v -c -M -MM -d -f -D -W -w -y \ COMPREPLY=( $( compgen -W '-n -v -c -M -MM -d -f -D -W -w -y \
-H -h -P -p -O -U -R -r -x -I -Q -X -Y -Z -ZZ' \ -H -h -P -p -O -U -R -r -x -I -Q -X -Y -Z -ZZ' -- "$cur" ) )
-- "$cur" ) )
fi fi
} }
complete -F _ldapdelete ldapdelete complete -F _ldapdelete ldapdelete
@ -162,8 +160,7 @@ _ldapcompare()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-n -v -z -M -MM -d -D -W -w -y \ COMPREPLY=( $( compgen -W '-n -v -z -M -MM -d -D -W -w -y \
-H -h -P -p -O -I -Q -U -R -x -X -Y -Z -ZZ' \ -H -h -P -p -O -I -Q -U -R -x -X -Y -Z -ZZ' -- "$cur" ) )
-- "$cur" ) )
fi fi
} }
complete -F _ldapcompare ldapcompare complete -F _ldapcompare ldapcompare
@ -197,8 +194,7 @@ _ldapmodrdn()
if [[ "$cur" == -* ]]; then if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-r -s -n -v -c -M -MM -d -D -W -w \ COMPREPLY=( $( compgen -W '-r -s -n -v -c -M -MM -d -D -W -w \
-y -H -h -P -p -O -I -Q -U -R -x -X -Y -Z -ZZ -f' \ -y -H -h -P -p -O -I -Q -U -R -x -X -Y -Z -ZZ -f' -- "$cur" ) )
-- "$cur" ) )
fi fi
} }
complete -F _ldapmodrdn ldapmodrdn complete -F _ldapmodrdn ldapmodrdn
@ -270,8 +266,8 @@ complete -F _ldappasswd ldappasswd
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -100,176 +100,127 @@ _openssl()
# possible options for the command # possible options for the command
case $command in case $command in
asn1parse) asn1parse)
options='-inform -in -out -noout \ options='-inform -in -out -noout -offset -length -i -oid \
-offset -length -i -oid \
-strparse' -strparse'
;; ;;
ca) ca)
options='-verbose -config -name \ options='-verbose -config -name -gencrl -revoke \
-gencrl -revoke -crl_reason \ -crl_reason -crl_hold -crl_compromise \
-crl_hold -crl_compromise \ -crl_CA_compromise -crldays -crlhours -crlexts \
-crl_CA_compromise -crldays \ -startdate -enddate -days -md -policy -keyfile -key \
-crlhours -crlexts -startdate \ -passin -cert -selfsig -in -out -notext -outdir \
-enddate -days -md -policy \ -infiles -spkac -ss_cert -preserveDN -noemailDN \
-keyfile -key -passin -cert \ -batch -msie_hack -extensions -extfile -engine \
-selfsig -in -out -notext \
-outdir -infiles -spkac \
-ss_cert -preserveDN \
-noemailDN -batch -msie_hack \
-extensions -extfile -engine \
-subj -utf8 -multivalue-rdn' -subj -utf8 -multivalue-rdn'
;; ;;
ciphers) ciphers)
options='-v -ssl2 -ssl3 -tls1' options='-v -ssl2 -ssl3 -tls1'
;; ;;
crl) crl)
options='-inform -outform -text -in \ options='-inform -outform -text -in -out -noout -hash \
-out -noout -hash -issuer \ -issuer -lastupdate -nextupdate -CAfile -CApath'
-lastupdate -nextupdate \
-CAfile -CApath'
;; ;;
crl2pkcs7) crl2pkcs7)
options='-inform -outform -in -out \ options='-inform -outform -in -out -print_certs'
-print_certs'
;; ;;
dgst) dgst)
options='-md5 -md4 -md2 -sha1 -sha \ options='-md5 -md4 -md2 -sha1 -sha -mdc2 -ripemd160 -dss1 \
-mdc2 -ripemd160 -dss1 -c -d \ -c -d -hex -binary -out -sign -verify -prverify \
-hex -binary -out -sign \ -signature'
-verify -prverify -signature'
;; ;;
dsa) dsa)
options='-inform -outform -in -passin \ options='-inform -outform -in -passin -out -passout -des \
-out -passout -des -des3 -idea \ -des3 -idea -text -noout -modulus -pubin -pubout'
-text -noout -modulus -pubin \
-pubout'
;; ;;
dsaparam) dsaparam)
options='-inform -outform -in -out \ options='-inform -outform -in -out -noout -text -C -rand \
-noout -text -C -rand -genkey' -genkey'
;; ;;
enc) enc)
options='-ciphername -in -out -pass \ options='-ciphername -in -out -pass -e -d -a -A -k -kfile \
-e -d -a -A -k -kfile -S -K \ -S -K -iv -p -P -bufsize -debug'
-iv -p -P -bufsize -debug'
;; ;;
dhparam) dhparam)
options='-inform -outform -in -out \ options='-inform -outform -in -out -dsaparam -noout -text \
-dsaparam -noout -text -C -2 \ -C -2 -5 -rand'
-5 -rand'
;; ;;
gendsa) gendsa)
options='-out -des -des3 -idea -rand' options='-out -des -des3 -idea -rand'
;; ;;
genrsa) genrsa)
options='-out -passout -des -des3 \ options='-out -passout -des -des3 -idea -f4 -3 -rand'
-idea -f4 -3 -rand'
;; ;;
pkcs7) pkcs7)
options='-inform -outform -in -out \ options='-inform -outform -in -out -print_certs -text \
-print_certs -text -noout' -noout'
;; ;;
rand) rand)
options='-out -rand -base64' options='-out -rand -base64'
;; ;;
req) req)
options='-inform -outform -in -passin \ options='-inform -outform -in -passin -out -passout -text \
-out -passout -text -noout \ -noout -verify -modulus -new -rand -newkey -newkey \
-verify -modulus -new -rand \ -nodes -key -keyform -keyout -md5 -sha1 -md2 -mdc2 \
-newkey -newkey -nodes -key \ -config -x509 -days -asn1-kludge -newhdr -extensions \
-keyform -keyout -md5 -sha1 \ -reqexts section'
-md2 -mdc2 -config -x509 \
-days -asn1-kludge -newhdr \
-extensions -reqexts section'
;; ;;
rsa) rsa)
options='-inform -outform -in -passin \ options='-inform -outform -in -passin -out -passout \
-out -passout -sgckey -des \ -sgckey -des -des3 -idea -text -noout -modulus -check \
-des3 -idea -text -noout \ -pubin -pubout -engine'
-modulus -check -pubin -pubout \
-engine'
;; ;;
rsautl) rsautl)
options='-in -out -inkey -pubin \ options='-in -out -inkey -pubin -certin -sign -verify \
-certin -sign -verify -encrypt \ -encrypt -decrypt -pkcs -ssl -raw -hexdump -asn1parse'
-decrypt -pkcs -ssl -raw \
-hexdump -asn1parse'
;; ;;
s_client) s_client)
options='-connect -verify -cert \ options='-connect -verify -cert -certform -key -keyform \
-certform -key -keyform -pass \ -pass -CApath -CAfile -reconnect -pause -showcerts \
-CApath -CAfile -reconnect \ -debug -msg -nbio_test -state -nbio -crlf -ign_eof \
-pause -showcerts -debug -msg \ -quiet -ssl2 -ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 \
-nbio_test -state -nbio -crlf \ -bugs -cipher -starttls -engine -tlsextdebug \
-ign_eof -quiet -ssl2 -ssl3 \ -no_ticket -sess_out -sess_in -rand'
-tls1 -no_ssl2 -no_ssl3 \
-no_tls1 -bugs -cipher \
-starttls -engine -tlsextdebug \
-no_ticket -sess_out -sess_in \
-rand'
;; ;;
s_server) s_server)
options='-accept -context -verify \ options='-accept -context -verify -Verify -crl_check \
-Verify -crl_check \ -crl_check_all -cert -certform -key -keyform -pass \
-crl_check_all -cert -certform \ -dcert -dcertform -dkey -dkeyform -dpass -dhparam \
-key -keyform -pass -dcert \ -nbio -nbio_test -crlf -debug -msg -state -CApath \
-dcertform -dkey -dkeyform \ -CAfile -nocert -cipher -quiet -no_tmp_rsa -ssl2 \
-dpass -dhparam -nbio \ -ssl3 -tls1 -no_ssl2 -no_ssl3 -no_tls1 -no_dhe \
-nbio_test -crlf -debug -msg \ -bugs -hack -www -WWW -HTTP -engine -tlsextdebug \
-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' -no_ticket -id_prefix -rand'
;; ;;
s_time) s_time)
options='-connect -www -cert -key \ options='-connect -www -cert -key -CApath -CAfile -reuse \
-CApath -CAfile -reuse -new \ -new -verify -nbio -time -ssl2 -ssl3 -bugs -cipher'
-verify -nbio -time -ssl2 \
-ssl3 -bugs -cipher'
;; ;;
sess_id) sess_id)
options='-inform -outform -in -out \ options='-inform -outform -in -out -text -noout -context \
-text -noout -context ID' ID'
;; ;;
smime) smime)
options='-encrypt -decrypt -sign \ options='-encrypt -decrypt -sign -verify -pk7out -des \
-verify -pk7out -des -des3 \ -des3 -rc2-40 -rc2-64 -rc2-128 -aes128 -aes192 -aes256 \
-rc2-40 -rc2-64 -rc2-128 \ -in -certfile -signer -recip -inform -passin -inkey \
-aes128 -aes192 -aes256 -in \ -out -outform -content -to -from -subject -text -rand'
-certfile -signer -recip \
-inform -passin -inkey -out \
-outform -content -to -from \
-subject -text -rand'
;; ;;
speed) speed)
options='-engine' options='-engine'
;; ;;
verify) verify)
options='-CApath -CAfile -purpose \ options='-CApath -CAfile -purpose -untrusted -help \
-untrusted -help \ -issuer_checks -verbose -certificates'
-issuer_checks -verbose \
-certificates'
;; ;;
x509) x509)
options='-inform -outform -keyform \ options='-inform -outform -keyform -CAform -CAkeyform -in \
-CAform -CAkeyform -in -out \ -out -serial -hash -subject-hash -issuer_hash -subject \
-serial -hash -subject-hash \ -issuer -nameopt -email -startdate -enddate -purpose \
-issuer_hash -subject -issuer \ -dates -modulus -fingerprint -alias -noout -trustout \
-nameopt -email -startdate \ -clrtrust -clrreject -addtrust -addreject -setalias \
-enddate -purpose -dates \ -days -set_serial -signkey -x509toreq -req -CA -CAkey \
-modulus -fingerprint -alias \ -CAcreateserial -CAserial -text -C -md2 -md5 -sha1 \
-noout -trustout -clrtrust \ -mdc2 -clrext -extfile -extensions -engine'
-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)) @(md5|md4|md2|sha1|sha|mdc2|ripemd160))
options='-c -d' options='-c -d'
@ -278,12 +229,10 @@ _openssl()
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
else else
if [[ "$command" == speed ]]; then if [[ "$command" == speed ]]; then
COMPREPLY=( $( compgen -W 'md2 mdc2 md5 hmac \ COMPREPLY=( $( compgen -W 'md2 mdc2 md5 hmac sha1 rmd160 \
sha1 rmd160 idea-cbc rc2-cbc rc5-cbc \ idea-cbc rc2-cbc rc5-cbc bf-cbc des-cbc des-ede3 rc4 \
bf-cbc des-cbc des-ede3 rc4 rsa512 \ rsa512 rsa1024 rsa2048 rsa4096 dsa512 dsa1024 dsa2048 idea \
rsa1024 rsa2048 rsa4096 dsa512 dsa1024 \ rc2 des rsa blowfish' -- "$cur" ) )
dsa2048 idea rc2 des rsa blowfish' -- \
"$cur" ) )
else else
_filedir _filedir
fi fi
@ -295,8 +244,8 @@ complete -F _openssl $default openssl
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -36,8 +36,7 @@ _p4()
-t) -t)
case "$prev2" in case "$prev2" in
add|edit|reopen) add|edit|reopen)
COMPREPLY=( $( compgen -W "$p4filetypes" \ COMPREPLY=( $( compgen -W "$p4filetypes" -- "$cur") )
-- "$cur") )
;; ;;
*) *)
;; ;;
@ -54,8 +53,8 @@ complete -F _p4 $default p4 g4
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -108,7 +108,10 @@ _perldoc()
# return available modules (unless it is clearly a file) # return available modules (unless it is clearly a file)
if [[ "$cur" != */* ]]; then if [[ "$cur" != */* ]]; then
_perlmodules _perlmodules
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W '$( PAGER=/bin/cat man perl | sed -ne "/perl.*Perl overview/,/perlwin32/p" | awk "\$NF=2 { print \$1}" | grep perl )' -- "$cur" ) ) COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \
'$( PAGER=/bin/cat man perl | \
sed -ne "/perl.*Perl overview/,/perlwin32/p" | \
awk "\$NF=2 { print \$1}" | grep perl )' -- "$cur" ) )
fi fi
fi fi
} }
@ -117,8 +120,8 @@ complete -F _perldoc $default perldoc
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -8,15 +8,15 @@ _pineaddr()
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook 2>/dev/null)' \ COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook \
-- "$cur" ) ) 2>/dev/null)' -- "$cur" ) )
} && } &&
complete -F _pineaddr $default pine complete -F _pineaddr $default pine
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -45,8 +45,8 @@ complete -F _pkg_config pkg-config
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -24,8 +24,8 @@ complete -F _pkg_delete $dirnames pkg_delete pkg_info
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -15,8 +15,8 @@ complete -F _removepkg $filenames removepkg &&
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -52,8 +52,8 @@ complete -F _pkg_delete $dirnames pkg_deinstall
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -229,8 +229,8 @@ complete -F _postsuper $filenames postsuper
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 8 # sh-basic-offset: 4
# sh-indent-comment: t # sh-indent-comment: t
# indent-tabs-mode: t # indent-tabs-mode: nil
# End: # End:
# ex: ts=8 sw=8 noet filetype=sh # ex: ts=4 sw=4 et filetype=sh

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