home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3213 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!utcsri!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!system
  3. From: system@alchemy.chem.utoronto.ca (System Admin (Mike Peterson))
  4. Subject: Re: global cshrc files ?
  5. Message-ID: <1992Jul30.174046.5284@alchemy.chem.utoronto.ca>
  6. Organization: University of Toronto Chemistry Department
  7. References: <1992Jul29.110212.10726@aau.dk>
  8. Date: Thu, 30 Jul 1992 17:40:46 GMT
  9. Lines: 30
  10.  
  11. In article <1992Jul29.110212.10726@aau.dk> adminpb@aau.dk (Nis Peder Bonde) writes:
  12. >Is it possible to make global .cshrc-files for csh and tcsh,
  13. >that are exec'd before the users own .cshrc-file ?
  14.  
  15. Some systems invoke /etc/cshrc (or whatever) before running the users
  16. .cshrc (similar for profile). What we do is give each user the following
  17. .cshrc (and similar .login, .profile and .kshrc):
  18.  
  19. #
  20. # .cshrc file - run for every C shell started.
  21. # Version: 1992/06/25.
  22. #
  23. # Do the /usr/local/Master.cshrc file stuff first.
  24. # Look there first to see what is being set automatically 
  25. # before making lots of additions here.
  26. #
  27. source /usr/local/Master.cshrc
  28. #
  29. # Optional (user-selectable) parameters - remove the '#' to activate.
  30. #
  31. #set noclobber        # activate to avoid overwriting files
  32. #alias rm rm -i        # activate to confirm each file deletion
  33. #setenv LIBDIR ~/lib    # set user-supplied library directory
  34.  
  35. This way they get the default stuff, but they are free to add stuff
  36. at the end, or even abandon my '/usr/local/Master.cshrc'. Of course,
  37. if they do that, they are on their own :-).
  38. -- 
  39. What are the chances that any computer system will ever "work" properly?
  40. ... and Slim just left town. -*- Mike Peterson, SysAdmin, U/Toronto Chemistry
  41.