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