home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / msh_ut11.zip / CONFIG.MSH < prev    next >
Text File  |  1992-05-10  |  6KB  |  154 lines

  1. |  CONFIG.MSH  is read first by MSH when it is invoked without a filename
  2. |  on the command line.
  3. |
  4. |      DEFAULT CONFIGURATION FILE FOR MI-SHELL
  5. |
  6. |  We have tried to group in this file everything that you might need to
  7. |  change. When installing MSH you should first go through this file and change
  8. |  things appropriately for your setup.
  9. |
  10. |              ┌──────────────────────────┐
  11. |              │ editor, browser, drives  │
  12. |              └──────────────────────────┘
  13. |
  14. "q "    editor!        | define here your editor
  15. "list " browser!       | define here your browser
  16. "CDE"   fixed_drives!  | define your fixed drives
  17. "AB"    floppy_drives! | define your floppy drives
  18. |
  19. |              ┌──────────────────┐
  20. |              │ Load Other files │
  21. |              └──────────────────┘
  22. |
  23. true berk!            | change if you don't own the Berkeley Utilities
  24. false delta!          | change if you don't own Delta
  25. true berk_cpmvrm!     | change if you don't want MSH to use the Berkeley's
  26.                       | cp,rm,mv (given in the "goodies") for deleting,
  27.               | copying and moving but want to use the MSDOS commands
  28. |
  29. | ┌───────────────────────────────────────────────────────────────────────┐
  30. | │ I like large windows and wide-display everywhere, adapt to your needs │
  31. | └───────────────────────────────────────────────────────────────────────┘
  32. |
  33. (
  34. (
  35.  panel.rc swap drop linescols drop
  36.  2 - swap panel.rc!   | Make panel 25-2 lines high
  37.  "N" panel.sort! "E" panel.sort!        | Sort by Extension (then name)
  38.  true  panel.size! true  panel.attrs!   | Wide Display
  39.  true  panel.date! true  panel.time!    |      "
  40.  false panel.sec!
  41. )
  42.  loop_panels
  43. )std_window!
  44. |
  45. |              ┌─────────┐
  46. |              │ "magic" │
  47. |              └─────────┘
  48. |
  49. |                    
  50. |  next line defines the place for "magic" swap files
  51. |  you need about 200K free in the swap directory or 200K of
  52. |  XMS (extended memory in 80286 and better computers) to use magic
  53. |
  54. (prog_dir)tmp_dir!     | put swap files in same directory as MSH.EXE
  55. |"G:\\"tmp_dir!        | this is better if G: is a RAM disk    
  56. |
  57. |  two definitions which allow to load script files from the place where
  58. |  MSH.EXE is, and then load all configuration scripts
  59. |
  60. (prog_pathname "\\" cutlast drop "\\" &)prog_dir!
  61. (prog_dir swap&read#)loaddefs!
  62. |
  63. "stddefs.msh"loaddefs  | reads the standard definitions. Lot of code here if
  64.                        | you want to learn the MSH script language.
  65. "berk.msh"loaddefs     | load Berkeley defs (you should keep this even if you
  66.                        | don't have the Berkeley Utilities: this will give
  67.                        | you some information about our products).
  68. "keybind.msh"loaddefs  | load the key bindings. Look into this file if you want
  69.                        | to change key bindings.
  70. "ext.msh"loaddefs      | load extension definitions. You might want to change
  71.                        | some definitions or add some.
  72. "menu.msh"loaddefs     | load the menus. The place to look if you want to change
  73.                        | the menus.
  74. "wildrun.msh"loaddefs  | Actions for wildrun on selected files
  75. "panel.msh"loaddefs    | An improved panel_stats-feature
  76. "archiver.msh"loaddefs | Actions defined when you are inside a arj/zip archive
  77. |              ┌──────────────────┐
  78. |              │ Video Attributes │
  79. |              └──────────────────┘
  80. |
  81. | in the line below, replace "c_blue.msh" by the name
  82. | of one of the available files describing attributes:
  83. |       c_mda.msh                   for monochrome displays
  84. |       c_pcga.msh                  for plasma cga displays
  85. |       c_blue.msh, c_blue1.msh,
  86. |       c_blue2.msh, c_white.msh    various possibilities
  87. |                                   for color displays
  88. |
  89. "c_blue.msh"loaddefs  | load blue color
  90.                       | set attributes
  91. e_att alert_att!
  92. |
  93. |              ┌────────────────┐
  94. |              │ Initial actions│
  95. |              └────────────────┘
  96. |
  97. "menu_line"isdefined  | detects if this file executed for 1st time
  98.                       | (you don't want to create additional panels
  99.               |  when you hit F9)
  100. (
  101. |
  102. |1 menu_line!            | start with the 2 line top menu
  103. 0 menu_line!            | start with the 1 line top menu
  104. |
  105. |               display directory panels & main menu
  106. |               there is some complicated arithmetic in order to start with
  107. |               3 panels when you have 132 columns!
  108. |
  109.  linescols 40 / nb_panels! drop | nb_panels gets 2 if 80 cols, 3 if 132 cols
  110.  cwd "*.*" makename dup panel.pattern! | start with pattern:
  111.                                        |  current_directory/*.*
  112.  1 cnt!             | loop from 1 to nb_panels-1 (one panel already exists)
  113.  (cnt nb_panels <)
  114.  (cnt 1+ cnt! dup panel.install cur_pn!)
  115.  while 
  116.  drop
  117.  cur_pn 1+ nb_panels- cur_pn! next_panel | we were on last panel, goback to 1st
  118.  side_by_side std_window | position & size, and make first panel wide
  119. |
  120. |                   turn the drive menu on
  121. |
  122.  drive_menu        | if you get rid of this line, please modify hide_all
  123.                    | in stddefs.msh to not refer to it.
  124. )ifnot
  125. |
  126. false mshlist!
  127. prog_dir "cmdlst"&read cmdlist! | recall old command stack
  128. |
  129. show_menu magic_menu  | show the main menu and the 'magic' indicator
  130. |
  131. | put here list of commands to be always executed with swapping to disk
  132. | enabled (those which need lots of memory)
  133. |
  134. "
  135. tex
  136. make
  137. td386
  138. win
  139. grasprt
  140. tpcx
  141. "magic_list!
  142. |
  143. tmp_dir "spaa.aaa" makename unlink | delete a previous swap file in case some
  144.                           | program crashed when swapping to disk was enabled
  145. |
  146. clock            | put up the time in the upper right corner
  147. |
  148. | we recommend that you put in the file `personal.msh' the definitions
  149. | that you add to MSH standard definitions. When you get a new release
  150. | of MSH with changes in the configuration files, it will be easier to
  151. | update it then if your changes have been cleanly isolated
  152. "personal.msh"loaddefs
  153. |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  154.