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
/
MYDEFS.ZIP
/
CONFIG.MSH
< prev
next >
Wrap
Text File
|
1992-05-09
|
6KB
|
150 lines
| CONFIG.MSH is read first by MSH when it is invoked without a filename
| on the command line.
|
| DEFAULT CONFIGURATION FILE FOR MI-SHELL
|
| We have tried to group in this file everything that you might need to
| change. When installing MSH you should first go through this file and change
| things appropriately for your setup.
|
| ┌──────────────────────────┐
| │ editor, browser, drives │
| └──────────────────────────┘
|
"q " editor! | define here your editor
"list " browser! | define here your browser
"CDE" fixed_drives! | define your fixed drives
"AB" floppy_drives! | define your floppy drives
|
| ┌──────────────────┐
| │ Load Other files │
| └──────────────────┘
|
true berk! | change if you don't own the Berkeley Utilities
false delta! | change if you don't own Delta
true berk_cpmvrm! | change if you don't want MSH to use the Berkeley's
| cp,rm,mv (given in the "goodies") for deleting,
| copying and moving but want to use the MSDOS commands
|
(
(
panel.rc swap drop linescols drop
2 - swap panel.rc! | Make panel 25-2 lines high
"N" panel.sort! "E" panel.sort! | Sort by Extension (then name)
true panel.size! true panel.attrs! | Wide Display
true panel.date! true panel.time! | "
false panel.sec!
)
loop_panels
)std_window!
|
| ┌─────────┐
| │ "magic" │
| └─────────┘
|
|
| next line defines the place for "magic" swap files
| you need about 200K free in the swap directory or 200K of
| XMS (extended memory in 80286 and better computers) to use magic
|
(prog_dir)tmp_dir! | put swap files in same directory as MSH.EXE
|"G:\\"tmp_dir! | this is better if G: is a RAM disk
|
| two definitions which allow to load script files from the place where
| MSH.EXE is, and then load all configuration scripts
|
(prog_pathname "\\" cutlast drop "\\" &)prog_dir!
(prog_dir swap&read#)loaddefs!
|
"stddefs.msh"loaddefs | reads the standard definitions. Lot of code here if
| you want to learn the MSH script language.
"berk.msh"loaddefs | load Berkeley defs (you should keep this even if you
| don't have the Berkeley Utilities: this will give
| you some information about our products).
"keybind.msh"loaddefs | load the key bindings. Look into this file if you want
| to change key bindings.
"ext.msh"loaddefs | load extension definitions. You might want to change
| some definitions or add some.
"menu.msh"loaddefs | load the menus. The place to look if you want to change
| the menus.
"wildrun.msh"loaddefs | Actions for wildrun on selected files
"archiver.msh"loaddefs | Actions defined when you are inside a arj/zip archive
|
| ┌──────────────────┐
| │ Video Attributes │
| └──────────────────┘
|
| in the line below, replace "c_blue.msh" by the name
| of one of the available files describing attributes:
| c_mda.msh for monochrome displays
| c_pcga.msh for plasma cga displays
| c_blue.msh, c_blue1.msh,
| c_blue2.msh, c_white.msh various possibilities
| for color displays
|
"c_blue.msh"loaddefs | load blue color
| set attributes
e_att alert_att!
|
| ┌────────────────┐
| │ Initial actions│
| └────────────────┘
|
"menu_line"isdefined | detects if this file executed for 1st time
| (you don't want to create additional panels
| when you hit F9)
(
|
|1 menu_line! | start with the 2 line top menu
0 menu_line! | start with the 1 line top menu
|
| display directory panels & main menu
| there is some complicated arithmetic in order to start with
| 3 panels when you have 132 columns!
|
linescols 40 / nb_panels! drop | nb_panels gets 2 if 80 cols, 3 if 132 cols
cwd "*.*" makename dup panel.pattern! | start with pattern:
| current_directory/*.*
1 cnt! | loop from 1 to nb_panels-1 (one panel already exists)
(cnt nb_panels <)
(cnt 1+ cnt! dup panel.install cur_pn!)
while
drop
cur_pn 1+ nb_panels- cur_pn! next_panel | we were on last panel, goback to 1st
side_by_side std_window | position & size, and make first panel wide
|
| turn the drive menu on
|
| drive_menu | if you get rid of this line, please modify hide_all
| in stddefs.msh to not refer to it.
)ifnot
|
false mshlist!
prog_dir "cmdlst"&read cmdlist! | recall old command stack
|
show_menu magic_menu | show the main menu and the 'magic' indicator
|
| put here list of commands to be always executed with swapping to disk
| enabled (those which need lots of memory)
|
"
tex
make
td386
win
grasprt
tpcx
"magic_list!
|
tmp_dir "spaa.aaa" makename unlink | delete a previous swap file in case some
| program crashed when swapping to disk was enabled
|
clock | put up the time in the upper right corner
|
| we recommend that you put in the file `personal.msh' the definitions
| that you add to MSH standard definitions. When you get a new release
| of MSH with changes in the configuration files, it will be easier to
| update it then if your changes have been cleanly isolated
"jens.msh"loaddefs
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||