]> git.marmaro.de Git - mmh/blobdiff - docs/COMPLETION-BASH
Dropped old show(1) and renamed mhshow(1) to show(1).
[mmh] / docs / COMPLETION-BASH
index 3f3829c329001594fde589424127123a8c64d000..70ac3b2c1f495af82baf8275a7209c92ba386d9c 100644 (file)
@@ -2,6 +2,9 @@
 # Copyright 2003 "Wade Richards" <wade@wabyn.net>
 # 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()
 {
@@ -71,10 +74,6 @@ _nmh()
             options=(-sequence -add -delete -list -public -nopublic
                     -zero -nozero -version -help)
             ;;
-        next )
-            options=(-showmimeproc -header -noheader -checkmime
-                    -nocheckmime -version -help)
-            ;;
         packf )
             options=(-file -version -help)
             ;;
@@ -84,13 +83,8 @@ _nmh()
                     -sequence -public -nopublic -zero -nozero -list -nolist
                     -version -help)
             ;;
-        prev )
-            options=(-showproc -showmimeproc -header -noheader -checkmime
-                    -nocheckmime -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
@@ -105,12 +99,13 @@ _nmh()
             options=(-link -nolink -version -help)
             ;;
         scan )
-            options=(-clear -noclear -form -header -noheader
+            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
@@ -155,4 +150,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