X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=docs%2FCOMPLETION-BASH;h=bdc584ff382e0269d76218a46586afd18e68c5ce;hp=d6496f778facc40a89edbad01fbd4e9a2b22b29a;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=f480c03187724e54e5391ee61b810827da319a6c diff --git a/docs/COMPLETION-BASH b/docs/COMPLETION-BASH index d6496f7..bdc584f 100644 --- a/docs/COMPLETION-BASH +++ b/docs/COMPLETION-BASH @@ -13,7 +13,7 @@ _nmh() prev=${COMP_WORDS[COMP_CWORD-1]} command=$1 - orig_opts=$(shopt -p extglob) + orig_opts=$(shopt -p extglob) shopt -s extglob # Get the folder, if specified @@ -21,22 +21,22 @@ _nmh() do case "${COMP_WORDS[i]}" in \++([a-zA-Z_]) ) - folder=${COMP_WORDS[i]} + folder=${COMP_WORDS[i]} origfolder=$( folder -f ) ;; esac done - case $current in - -* ) + case $current in + -* ) # Command-line switches for the most common commands. case $command in - ali ) + ali ) # no sequences or messages options=(-alias -list -nolist -normalize -nonormalize -user -nouser -version -help) ;; - burst ) + burst ) options=(-inplace -noinplace -quiet -noquiet -verbose -noverbose -version -help) ;; @@ -44,7 +44,7 @@ _nmh() options=(-form -use -nouse -file -draftfolder -draftmessage -nodraftfolder -editor -noedit -whatnowproc -nowhatnowproc -version -help ) - ;; + ;; flist* ) options=(-sequence -all -noall -showzero -noshowzero -recurse -norecurse -fast -nofast -alpha -noalpha -version @@ -161,4 +161,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 rcvtty refile repl rmf rmm scan send sendfiles show slocal sortm whatnow whom +[ "$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 rcvtty refile repl rmf rmm scan send sendfiles show slocal sortm whatnow whom