X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=docs%2FCOMPLETION-BASH;h=35cdf9f7d6ccb207eb0971e5a9f0e30afd81c28d;hp=3f3829c329001594fde589424127123a8c64d000;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=d7a8824aeaf72569a43d2a5f19d87af1a63d289b diff --git a/docs/COMPLETION-BASH b/docs/COMPLETION-BASH index 3f3829c..35cdf9f 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=(-clear -noclear -form -header -noheader - -width -file -version -help ) + options=(-form -header -noheader + -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 next packf pick prev prompter rcvdist rcvpack rcvstore refile repl rmf rmm scan send sendfiles show slocal sortm whatnow