X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=docs%2FCOMPLETION-BASH;h=da20671828b832a708c19d7f710b5bbd75751dd6;hp=e4af65d2b8c12fd288dac8ac22885e62ee5e5249;hb=32b2354dbaf4bf934936eb5b102a4a3d2fdd209a;hpb=e57b17343dcb3ff373ef4dd089fbe778f0c7c270 diff --git a/docs/COMPLETION-BASH b/docs/COMPLETION-BASH index e4af65d..da20671 100644 --- a/docs/COMPLETION-BASH +++ b/docs/COMPLETION-BASH @@ -2,6 +2,9 @@ # Copyright 2003 "Wade Richards" # Permission granted to redistribute under the BSD license +[ "$BASH_COMPLETION" ] || echo "ERROR: COMPLETION-BASH is not intended to be \ +sourced directly, but rather added to a bash-completion package installation." + have show && _nmh() { @@ -34,90 +37,81 @@ _nmh() ali ) # no sequences or messages options=(-alias -list -nolist -normalize -nonormalize -user - -nouser -version -help) + -nouser -Version -help) ;; burst ) options=(-inplace -noinplace -quiet -noquiet -verbose - -noverbose -version -help) + -noverbose -Version -help) ;; comp ) options=(-form -use -nouse - -editor -noedit -whatnowproc -nowhatnowproc - -version -help ) + -editor -noedit -whatnowproc + -Version -help ) ;; flist* ) options=(-sequence -all -noall -showzero -noshowzero - -recurse -norecurse -fast -nofast -alpha -noalpha -version + -recurse -norecurse -fast -nofast -alpha -noalpha -Version -help) ;; folder* ) options=(-all -noall -create -nocreate -fast -nofast -header -noheader -recurse -norecurse -total -nototal -list -nolist -push -pop -pack -nopack -print -verbose -noverbose - -version -help) + -Version -help) ;; forw ) options=(-annotate -noannotate -form - -editor -noedit -whatnowproc - -nowhatnowproc -build - -version -help) + -editor -noedit -whatnowproc -build + -Version -help) ;; inc ) options=(-audit -noaudit -changecur -nochangecur -form -file -silent -nosilent -truncate -notruncate -width - -version -help) + -Version -help) ;; mark ) options=(-sequence -add -delete -list -public -nopublic - -zero -nozero -version -help) - ;; - next ) - options=(-showmimeproc -header -noheader -checkmime - -nocheckmime -version -help) + -zero -nozero -Version -help) ;; packf ) - options=(-file -version -help) + options=(-file -Version -help) ;; pick ) options=(-and -or -not -lbrace -rbrace --component -cc -date -from -search -subject -to -after -before -datefield -sequence -public -nopublic -zero -nozero -list -nolist - -version -help) - ;; - prev ) - options=(-showproc -showmimeproc -header -noheader -checkmime - -nocheckmime -version -help) + -Version -help) ;; refile ) - options=(-link -nolink -preserve -nopreserve -unlink - -nounlink -src -file -rmmproc -normmproc -version -help) + options=(-link -nolink -src -file -Version -help) ;; repl ) options=(-annotate -noannotate -group -nogroup -cc -nocc -query -noquery -form -filter -nofilter -mime -nomime -editor -noedit -whatnowproc - -nowhatnowproc -build -file -version -help) + -build -file -Version -help) ;; rmf ) - options=(-interactive -nointeractive -version -help) + options=(-interactive -nointeractive -Version -help) ;; rmm ) - options=(-link -nolink -version -help) + options=(-link -nolink -Version -help) ;; scan ) options=(-form -header -noheader - -width -file -version -help ) + -width -file -Version -help ) ;; show ) - options=(-showproc -showmimeproc -header -noheader - -checkmime -nocheckmime -version -help) + next ) + prev ) + options=(-file -part -type -form -Version -help) ;; sortm ) options=(-datefield -textfield -notextfield -limit -nolimit - -verbose -noverbose -version -help) + -verbose -noverbose -Version -help) ;; * ) - options=(-help -version -seq) + options=(-help -Version -seq) ;; esac ;; @@ -155,4 +149,4 @@ _nmh() COMPREPLY=( $( compgen -W "${options[*]}" -- $current ) ) return 0 } -[ "$have" ] && complete -F _nmh ali anno burst comp dist flist flists folder folders forw inc mark mhbuild mhl mhlist mhmail mhparam mhpath mhshow mhstore msgchk next packf pick prev prompter rcvdist rcvpack rcvstore refile repl rmf rmm scan send sendfiles show slocal sortm whatnow +[ "$have" ] && complete -F _nmh ali anno burst comp dist flist flists folder folders forw inc mark mhbuild mhl mhlist mhmail mhparam mhpath mhstore msgchk next packf pick prev prompter rcvdist rcvpack rcvstore refile repl rmf rmm scan send sendfiles show slocal sortm whatnow