- add more completions to aptitude (Closes: #432289)
- fixed UTF-8 problem with _get_cword(), thanks to Andrei Paskevich (Closes: #472132) - fixed autoremove completion, thanks to Flavio Visentin (Closes: #474974) - cmf and CMF added to playmidi completion (Closes: #365658) - added rrdtool completion, thanks to Justin Pryzby (Closes: #428641) - added OpenDocument completion for unzip/zipinfo (.od{f,g,p,s,t}) (Closes: #472940)
This commit is contained in:
parent
399978cba0
commit
9cbd3ceab2
@ -81,7 +81,7 @@ complete -d pushd
|
||||
#
|
||||
# START exclude -- do NOT remove this line
|
||||
complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep
|
||||
complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi|sxw|ott)' unzip zipinfo
|
||||
complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi|sxw|ott|od[fgpst])' unzip zipinfo
|
||||
complete -f -X '*.Z' compress znew
|
||||
complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip zcmp zdiff zcat zegrep zfgrep zgrep zless zmore
|
||||
complete -f -X '!*.Z' uncompress
|
||||
@ -105,7 +105,7 @@ complete -f -X '!*.@(mpg|mpeg|avi|mov|qt)' xanim
|
||||
complete -f -X '!*.@(ogg|OGG|m3u|flac|spx)' ogg123
|
||||
complete -f -X '!*.@(mp3|MP3|ogg|OGG|pls|m3u)' gqmpeg freeamp
|
||||
complete -f -X '!*.fig' xfig
|
||||
complete -f -X '!*.@(mid?(i)|MID?(I))' playmidi
|
||||
complete -f -X '!*.@(mid?(i)|MID?(I)|cmf|CMF)' playmidi
|
||||
complete -f -X '!*.@(mid?(i)|MID?(I)|rmi|RMI|rcp|RCP|[gr]36|[GR]36|g18|G18|mod|MOD|xm|XM|it|IT|x3m|X3M)' timidity
|
||||
complete -f -X '*.@(o|so|so.!(conf)|a|t@(ar?(.@(Z|gz|bz?(2)))|gz|bz?(2))|rpm|zip|ZIP|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' vi vim gvim rvim view rview rgvim rgview gview
|
||||
complete -f -X '*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' emacs
|
||||
@ -197,6 +197,7 @@ _rl_enabled()
|
||||
_get_cword()
|
||||
{
|
||||
local i
|
||||
local LC_CTYPE=C
|
||||
local WORDBREAKS=${COMP_WORDBREAKS}
|
||||
if [ -n $1 ]; then
|
||||
for (( i=0; i<${#1}; ++i )); do
|
||||
@ -690,7 +691,8 @@ complete -F _umount $dirnames umount
|
||||
# that instead.
|
||||
#
|
||||
_mount()
|
||||
{ local cur i sm host
|
||||
{
|
||||
local cur i sm host
|
||||
|
||||
COMPREPLY=()
|
||||
cur=`_get_cword`
|
||||
@ -2068,14 +2070,14 @@ _apt_get()
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
|
||||
if [[ ${COMP_WORDS[i]} == @(install|remove|purge|source|build-dep) ]]; then
|
||||
if [[ ${COMP_WORDS[i]} == @(install|remove|autoremove|purge|source|build-dep) ]]; then
|
||||
special=${COMP_WORDS[i]}
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$special" ]; then
|
||||
case $special in
|
||||
remove|purge)
|
||||
remove|autoremove|purge)
|
||||
if [ -f /etc/debian_version ]; then
|
||||
# Debian system
|
||||
COMPREPLY=( $( _comp_dpkg_installed_packages \
|
||||
@ -2123,6 +2125,7 @@ _apt_get()
|
||||
--list-cleanup --default-release \
|
||||
--no-install-recommends \
|
||||
--trivial-only --no-remove --diff-only \
|
||||
--no-install-recommends \
|
||||
--tar-only --config-file --option --auto-remove' -- $cur ) )
|
||||
else
|
||||
|
||||
@ -4821,8 +4824,10 @@ _muttaddr()
|
||||
{
|
||||
_muttaliases
|
||||
_muttquery
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
COMPREPLY=( ${COMPREPLY[@]} $( compgen -u -- "$cur" ) )
|
||||
|
||||
cur=`_get_cword`
|
||||
COMPREPLY=( ${COMPREPLY[@]} $( compgen -u -- $cur ) )
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -5348,7 +5353,7 @@ _perldoc()
|
||||
;;
|
||||
*)
|
||||
_perlmodules
|
||||
COMPREPLY=( ${COMPREPLY[@]} $( compgen -W '$( PAGER=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 ) )
|
||||
|
||||
return 0
|
||||
;;
|
||||
@ -5966,7 +5971,7 @@ _mplayer()
|
||||
-xvidencopts -of --verbose' -- $cur) )
|
||||
;;
|
||||
*)
|
||||
_filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3gp|mpc|MPC|flac|FLAC|flv|FLV|aif|AIF|aiff|AIFF)'
|
||||
_filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|m4[av]|M4[AV]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mk[av]|MK[AV]|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3gp|mpc|MPC|flac|FLAC|vro|VRO|flv|FLV|divx|DIVX|aif?(f)|AIF?(F))'
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -9308,6 +9313,15 @@ _svnlook()
|
||||
return 0
|
||||
}
|
||||
complete -F _svnlook $default svnlook
|
||||
|
||||
_rrdtool ()
|
||||
{
|
||||
cur=`_get_cword`
|
||||
COMPREPLY=( $( compgen -W 'create update updatev graph dump \
|
||||
restore last lastupdate first info \
|
||||
fetch tune resize xport' -- $cur ) )
|
||||
}
|
||||
complete -F _rrdtool rrdtool
|
||||
}
|
||||
|
||||
_filedir_xspec()
|
||||
|
@ -7,7 +7,7 @@ _bk() {
|
||||
local BKCMDS
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
BKCMDS="$( bk help topics | grep '^ bk' | cut -d ' ' -f 4 | \
|
||||
xargs echo )"
|
||||
|
@ -7,7 +7,7 @@ _btdownload()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
|
@ -5,7 +5,7 @@
|
||||
_cksfv()
|
||||
{
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [ $COMP_CWORD -eq 1 ]; then
|
||||
COMPREPLY=( $( compgen -W '-C -f -i -q -v' -- $cur ) )
|
||||
|
@ -8,7 +8,7 @@ _clisp()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
|
@ -9,7 +9,7 @@ _arpspoof()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -39,7 +39,7 @@ _dnsspoof()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -67,7 +67,7 @@ _dsniff()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -96,7 +96,7 @@ _snarf()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -120,7 +120,7 @@ _macof()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -145,7 +145,7 @@ _sshmitm()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-d -I -p' -- $cur ) )
|
||||
@ -163,7 +163,7 @@ _sshow()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -187,7 +187,7 @@ _tcpkill()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -211,7 +211,7 @@ _tcpnice()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -235,7 +235,7 @@ _urlsnarf()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -259,7 +259,7 @@ _webmitm()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-d' -- $cur ) )
|
||||
|
@ -7,7 +7,7 @@ _civserver()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -34,7 +34,7 @@ _civclient()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
|
@ -8,7 +8,7 @@ _gcl()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
|
@ -7,7 +7,7 @@ _gkrellm()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
|
@ -7,7 +7,7 @@ _gnatmake()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
# relevant (and less relevant ;-) )options completion
|
||||
|
@ -5,7 +5,7 @@
|
||||
_isql()
|
||||
{
|
||||
local cur
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
COMPREPLY=( $( grep \\[$cur $ODBCINI | tr -d \\[\\] ) )
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ _larch()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
if [ $COMP_CWORD -eq 1 ] || [[ "$prev" == -* ]]; then
|
||||
|
@ -8,7 +8,7 @@ _lisp()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
|
@ -12,7 +12,7 @@ _add_members()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -43,7 +43,7 @@ _remove_members()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -70,7 +70,7 @@ _find_member()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -94,7 +94,7 @@ _clone_member()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -117,7 +117,7 @@ _sync_members()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -147,7 +147,7 @@ _list_lists()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-a --advertised \
|
||||
@ -163,7 +163,7 @@ _unshunt()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-h --help' -- $cur ) )
|
||||
@ -179,7 +179,7 @@ _list_admins()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--all-vhost= -v \
|
||||
@ -196,7 +196,7 @@ _list_owners()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-w --with-listnames \
|
||||
@ -213,7 +213,7 @@ _list_members()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -248,7 +248,7 @@ _change_pw()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -271,7 +271,7 @@ _withlist()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-l --lock -i --interactive \
|
||||
@ -288,7 +288,7 @@ _newlist()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-l --language -q --quiet -h --help' -- $cur ) )
|
||||
@ -304,7 +304,7 @@ _rmlist()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--archives -a \
|
||||
@ -321,7 +321,7 @@ _config_list()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -347,7 +347,7 @@ _arch()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -389,7 +389,7 @@ _cleanarch()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-s --status -n --dry-run \
|
||||
@ -404,7 +404,7 @@ _inject()
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
@ -429,7 +429,7 @@ _dumpdb()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--marshal -m --pickle -p --noprint -n -h --help' -- $cur ) )
|
||||
@ -445,7 +445,7 @@ _check_db()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--all -a --verbose -v \
|
||||
@ -462,7 +462,7 @@ _check_perms()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-f -v -h' -- $cur ) )
|
||||
@ -476,7 +476,7 @@ _genaliases()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-q --quiet -h --help' -- $cur ) )
|
||||
@ -490,7 +490,7 @@ _mmsitepass()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-c --listcreator -h --help' -- $cur ) )
|
||||
@ -504,7 +504,7 @@ _qrunner()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-r --runner= --once -o \
|
||||
@ -519,7 +519,7 @@ _mailmanctl()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-n --no-restart -u --run-as-user \
|
||||
|
@ -7,7 +7,7 @@ _mcrypt()
|
||||
local cur prev i decrypt
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
|
@ -45,7 +45,7 @@ _module () {
|
||||
local cur prev options
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
if [ $COMP_CWORD -eq 1 ] ; then
|
||||
|
@ -7,7 +7,7 @@ _mtx()
|
||||
local cur prev options tapes drives
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
options="-f nobarcode invert noattach --version inquiry noattach \
|
||||
|
@ -7,7 +7,7 @@ _p4()
|
||||
local cur prev prev2 p4commands p4filetypes
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
# rename isn't really a command
|
||||
|
@ -8,7 +8,7 @@ _povray()
|
||||
defoext=png # default output extension, if cannot be determined FIXME
|
||||
|
||||
COMPREPLY=()
|
||||
povcur=${COMP_WORDS[COMP_CWORD]}
|
||||
povcur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
_expand || return 0
|
||||
|
@ -39,7 +39,7 @@ _ri()
|
||||
local -a classes
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
ri_path=$(type -p ri)
|
||||
# which version of ri are we using?
|
||||
|
@ -8,7 +8,7 @@ _sbcl()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
# completing an option (may or may not be separated by a space)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
|
@ -9,7 +9,7 @@ _sitecopy()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
case "$cur" in
|
||||
--*)
|
||||
|
@ -7,7 +7,7 @@ _snownews()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
# return list of available options
|
||||
|
@ -7,7 +7,7 @@ _svk()
|
||||
local cur prev commands options command
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
commands='add admin annotate ann blame praise cat checkout co cleanup \
|
||||
cmerge cm commit ci copy cp delete del remove rm depotmap \
|
||||
|
@ -7,7 +7,7 @@ _unace()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
|
@ -7,7 +7,7 @@ _unrar()
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
cur=`_get_cword`
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
|
12
debian/changelog
vendored
12
debian/changelog
vendored
@ -2,6 +2,15 @@ bash-completion (20080501-1) UNRELEASED; urgency=low
|
||||
|
||||
[ David Paleino ]
|
||||
* New upstream release
|
||||
- add more completions to aptitude (Closes: #432289)
|
||||
- fixed UTF-8 problem with _get_cword(), thanks to
|
||||
Andrei Paskevich (Closes: #472132)
|
||||
- fixed autoremove completion, thanks to Flavio Visentin
|
||||
(Closes: #474974)
|
||||
- cmf and CMF added to playmidi completion (Closes: #365658)
|
||||
- added rrdtool completion, thanks to Justin Pryzby (Closes: #428641)
|
||||
- added OpenDocument completion for unzip/zipinfo (.od{f,g,p,s,t})
|
||||
(Closes: #472940)
|
||||
* debian/copyright - now in a fancier machine-parsable format.
|
||||
* debian/control:
|
||||
- added myself to Uploaders
|
||||
@ -13,6 +22,7 @@ bash-completion (20080501-1) UNRELEASED; urgency=low
|
||||
* debian/dirs, debian/install and debian/links added
|
||||
* debian/rules:
|
||||
- refactored to make use of debian/{dirs,install,links}
|
||||
|
||||
[ Steve Kemp ]
|
||||
* Applied patch to fix completion of unmount command.
|
||||
(Closes: #470539)
|
||||
@ -27,7 +37,7 @@ bash-completion (20080501-1) UNRELEASED; urgency=low
|
||||
* Update apt-get completion to include the flag "--no-install-recommends"
|
||||
(Closes: #475242)
|
||||
|
||||
-- David Paleino <d.paleino@gmail.com> Thu, 01 May 2008 23:11:27 +0200
|
||||
-- David Paleino <d.paleino@gmail.com> Sat, 10 May 2008 17:59:26 +0200
|
||||
|
||||
bash-completion (20060301-4) unstable; urgency=low
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user