home *** CD-ROM | disk | FTP | other *** search
/ ftp.freefriends.org / ftp.freefriends.org.tar / ftp.freefriends.org / arnold / Source / mush.rstevens.tar.gz / mush.tar / sample.mushrc < prev    next >
Text File  |  1990-10-21  |  7KB  |  148 lines

  1. # sample.mushrc
  2. # By Bart Schaefer and Dan Heller
  3. #
  4. # Change mush's temp file directory, to avoid quota collisions.
  5. # /usr/tmp so tmpfiles won't be rm'd before they can be recovered.
  6. set tmpdir=/usr/tmp
  7.  
  8. # Set the folder and mbox locations; the + expands to value of "folder".
  9. set folder=$HOME/Mail mbox=+mbox
  10.  
  11. # Set up the display early to allow quick exit in headers-only mode.
  12. # The hdrs_only flag is true if the command line was: "mush -H".
  13. # The variable hdr_format is set to change the format of the header
  14. # summaries that are displayed.
  15. if hdrs_only
  16.     set hdr_format='%28a %M %-2N  %.33s'
  17.     exit    # Quits reading this file
  18. else
  19.     set hdr_format='%28a %M %-2N (%3.5l li) %.25s'
  20. endif
  21.  
  22. # Set the prompt to show current time, name of the current folder,
  23. # current message number, and count of total messages.
  24. set prompt="(%T) %f: #%m of %t> "
  25.  
  26. # Hitting <CR> should do nothing (helps make mush more shell-like).  If
  27. # newline is not set, hitting <CR> prints the next message (like Mail).
  28. # This variable could be set to any mush command.
  29. set newline
  30.  
  31. # These variables are helpful for new users:
  32. #    ask        -- always prompt for Subject: of mail
  33. #    ignoreeof    -- ignore end-of-file from keyboard
  34. #    verify        -- query that all is well before sending mail
  35. #    warning        -- report miscellaneous possible problems
  36. set ask verify warning
  37. set ignoreeof="echo 'Use "'"'quit'"'" to quit.'"
  38.  
  39. # When reading messages, don't bother looking at lengthy, boring headers.
  40. ignore message-id received via status
  41.  
  42. # Since mush has csh-like history, you might find it annoying to type
  43. # things like "mail host\!host1\!host2\!user" from within the mush shell.
  44. # Setting nonobang will prevent the "unknown event" and allow the !'s to
  45. # be typed without having to be preceded by backslashes.
  46. set nonobang
  47.  
  48. # By default, mush's history is set to the last command only.  Set it to
  49. # remember the last 100 commands.
  50. set history = 100
  51.  
  52. # If the variable "unix" is set, then any command that isn't a mush command
  53. # will execute the command as if you typed it from the shell.  Note, such
  54. # commands will not go through another shell -- this is it.
  55. set unix
  56.  
  57. # Mush tries to read ~/.mushrc first, then it tries ~/.mailrc.  Assuming
  58. # you use *this* file as your .mushrc, source the contents of .mailrc as
  59. # well in case there are Mail aliases that are set there.
  60. source $HOME/.mailrc
  61.  
  62. # Use a real pager.
  63. set pager=less
  64.  
  65. # When typing in a letter, it is sometimes convenient to have lines wrap
  66. # automatically similar to editors like vi and emacs.  In this example, if
  67. # the user types past column 74, a newline will automatically be inserted.
  68. set wrapcolumn=74
  69.  
  70. # If "autosign" is set, then a file can be read in automatically whenever
  71. # mail is sent.  This file is normally your "signature," that is, your
  72. # name and other information you want included in every message.
  73. set autosign = ~/.signature
  74.  
  75. # When you use the -i option to reply, or use the ~i tilde escape in a letter
  76. # when in compose mode, the current message will be included in your text.
  77. # Put a nice wrapper around those included messages.  Here, show the author's
  78. # name and the subject of his letter, label the end, and add a trailing blank
  79. # to separate each inclusion and make finding the end easier.
  80. set pre_indent_str='On %M %N, %T, %.50n wrote:\n} Subject: %.65s'
  81. set indent_str='} '    # actual message text is preceded by a "}"
  82. set post_indent_str='}-- End of excerpt from %.50n\n'
  83.  
  84. # Label replies with a header showing the who, what, and when of the
  85. # message being replied-to.
  86. set in_reply_to='%f\n\t"%s" (%d)'
  87.  
  88. # Mail routing and address-fixing conveniences.  If auto_route is set, then
  89. # replies to messages take a closer look at the addresses of the recipients.
  90. # If any redundant paths are present, they are pruned.  Also, the path that
  91. # precedes any hosts listed in the "known_hosts" list is truncated.  This is
  92. # useful for uucp sites only, and is therefore commented out in this sample.
  93. # set auto_route known_hosts="sun ucbcad well unicom"
  94.  
  95. # The "alts" command specifies alternate addresses that I have.  Here,
  96. # "*" expands to any "path" whose recipient ends with the user's current
  97. # login name.  If another login name is desired, the login and/or path
  98. # to that login must be preceded by a !.  Otherwise, standard paths are used.
  99. alts "*"
  100.  
  101. # The "map" command can rebind certain key sequences in tty-mode only.
  102. # Here, if the user types two R's in a row at the prompt, then the string
  103. # "reply -ei " will be echoed as if the user typed it.
  104. map RR "reply -ei "
  105. # "rr" will do a reply and do the newline for you so you don't have to.
  106. map rr "reply\n"
  107.  
  108. # The "map!" command is similar to "map" in that you can do keyboard
  109. # acceleration, but map! occurs during letter composition mode only.
  110. map! '\CT' '    '    # ^T generates 4 spaces in composition mode.
  111. # Here, hitting * twice will append a pre-signature.
  112. map! ** "\n            Later,\n"
  113.  
  114. # Be careful with map and map! -- you can cause an infinite loop.
  115. # Your interrupt key (usually ^C) will stop such loops.
  116.  
  117. # The curses mode allows the screen to be set up like a full screen editor.
  118. # There are basic "curses commands" which are bound to keyboard key-sequences
  119. # (usually one character).  The user can rebind these keys to suit his tastes.
  120. # Note that the binding for R below removes the binding of reply-all.
  121. #
  122. set curses_help        # Unset this to remove help message in curses.
  123. bind \n display        # Hit return to display the next message.
  124. bind t top        # Make it easier to see the top few lines.
  125. bind e macro "[line-mode]edit\n"    # Quick edit from curses.
  126. bind P macro "[line-mode]Print\n"    # Show me all the headers.
  127. bind R macro "[line-mode]reply -ei "    # Reply with inclusion and edit.
  128. bind A macro "R[getline]~t\n\CUargv\n"    # R to Dan w/auto address fix.
  129.  
  130. # "cmd" is used to set command line aliases similar to the way "csh"
  131. # does it.  The only difference is that "alias" is a reserved word in
  132. # Mush and Mail, so cmd is used.
  133. #
  134. cmd dq 'd \!*; q'        # Delete a message list, then quit.
  135. cmd unread 'flags \!* U O'    # Mark messages unread.
  136. cmd : curses            # Colon now "toggles" curses mode.
  137.  
  138. # Find messages from mailer-daemon (ignore upper/lower case).
  139. cmd md 'pick -i -f mailer-daemon'
  140. # Because mush can pipe commands to one another, including "cmd"'s, this
  141. # example will delete all messages from mailer-daemon
  142. cmd dmd 'md | delete'
  143.  
  144. # aliases -- just like Mail's, but you can specify "names"
  145. alias argv Dan Heller <argv@sun.com>
  146. alias bart Bart Schaefer <schaefer@cse.ogi.edu>
  147. alias mush-users Mush Users <mush-users-request@apple.com>
  148.