home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hcshdemo.zip / csh-os2.zip / LOGIN.CSH < prev    next >
Text File  |  1994-06-15  |  4KB  |  72 lines

  1. #  Login.csh Release 2.2
  2.  
  3. #  This is a sample login.csh file.  The Hamilton C shell looks for this
  4. #  file in your home directory when you start it from the Start Programs
  5. #  menu.  You should edit it, customizing it to your needs.  Blank lines are
  6. #  ignored; anything following a "#" on a given line is considered a comment.
  7. #  The comments can be deleted if you want the shell to start up faster.
  8.  
  9. #  (As it comes off the distribution disk, this file contains ONLY comment
  10. #  text explaining how to customize it.)
  11.  
  12. #  In general, if you define an environmental variable in an initialization
  13. #  file for cmd.exe (rather than in config.sys), you should probably include
  14. #  a corresponding "setenv" statement in this file.  To generate these
  15. #  automatically, use the dumpenv.exe utility:
  16. #
  17. #        dumpenv >>login.csh
  18. #
  19. #  Every user will need to provide suitable definitions for COMSPEC, HOME,
  20. #  PATH, PROMPT and TABS.  If you haven't defined them in config.sys, or
  21. #  want to use different settings, define them here.
  22.  
  23. #
  24. #  setenv   COMSPEC  =  c:\cmd.exe     # The standard OS/2 command processor.
  25. #  setenv   HOME     =  d:\doug        # Pick any directory as "home".
  26. #  setenv   PATH     =  '.;c:\;c:\os2\bin;c:\os2\cmds' # Setup your path.
  27. #                                      # Notice that "." is explicitly shown
  28. #                                      # as the first directory on the search
  29. #                                      # path.
  30. #  setenv   PROMPT   =  '$iOS/2 $n$g'  # Prompt for cmd.exe.
  31. #  setenv   TABS     =  3              # Used by more.exe for tab expansion.
  32.  
  33.  
  34. #  A word about the PATH variable:
  35.  
  36. #  Hamilton C shell does not assume the current directory is the first
  37. #  entry in your search PATH unless you specify it explicitly.  You can
  38. #  put it anywhere in the list; it does not have to be first, it does not
  39. #  even have to appear if indeed you _don't_ want the current directory
  40. #  checked when you type a command name.
  41. #
  42. #  Most users, however, _will_ want the current directory to be the first
  43. #  PATH directory, so for convenience during installation, dumpenv pastes
  44. #  ".;" onto the front of the the PATH string it writes out if it's not there
  45. #  already.  Also, the default startup.csh file has a line that pastes the
  46. #  "." directory onto the front of PATH if the shell is started up from
  47. #  cmd.exe without it.
  48.  
  49.  
  50. #  Additional Declarations
  51.  
  52. #  You may need additional declarations to run your existing tools, e.g.,
  53. #  your C compiler or linker.  Here are some examples:
  54. #
  55. #  setenv   INCLUDE  =  c:\os2\include
  56. #  setenv   LIB      =  c:\os2\lib
  57. #  setenv   TMP      =  e:\tmp
  58.  
  59. #  Finally, you may wish to do various other sorts of initialization when 
  60. #  you start a new copy of Hamilton C shell from Group Main or (under OS/2
  61. #  2.0) the Workplace Shell.  Here are some examples:
  62. #
  63. #  set   savehist    =  0              # Do not save history at exit.
  64. #  set   ignoreeof   =  1              # Insist on an exit command.  Don't
  65. #                                      #   exit just because end-of-file (^Z)
  66. #                                      #   was encountered.
  67. #  cd    c:\os2\include                # Set up whatever current directories
  68. #  cd    e:\tmp                        #   you want when the shell starts up.
  69. #  cd    +c ~                          #   ("+c ~" means change to home
  70. #                                      #   directory and drive;  note that "~"
  71. #                                      #   depends on HOME being already set.)
  72.