From owner-freebsd-current Thu Mar 7 03:00:23 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA27704 for current-outgoing; Thu, 7 Mar 1996 03:00:23 -0800 (PST) Received: from nervosa.com (root@nervosa.com [192.187.228.86]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id DAA27693 for ; Thu, 7 Mar 1996 03:00:17 -0800 (PST) Received: from nervosa.com (coredump@onyx.nervosa.com [10.0.0.1]) by nervosa.com (8.7.5/nervosa.com.2) with SMTP id CAA01046 for ; Thu, 7 Mar 1996 02:51:22 -0800 (PST) Date: Thu, 7 Mar 1996 02:51:22 -0800 (PST) From: invalid opcode To: FreeBSD-current Subject: changes to /etc/csh.* Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org Precedence: bulk I'm submitting my versions of /etc/csh.{login,logout,cshrc} as a potential new base. I suggest moving away from .cshrc, .login, .logout, and implementing it into the system /etc/csh.* files. This way the user can specify truly local options in .cshrc, .login, .etc instead of every user having the same .cshrc and .login in their home dirs. -- cut here ------------------------------------------------------- /etc/csh.login: #!/bin/csh if ( ($TERM == "") || ($TERM == "unknown") ) setenv TERM cons25 /bin/stty sane erase '' crt -tostop if ( $user == root ) then set path = ( /bin /sbin /usr/{bin,sbin,local/{bin,sbin},X11R6/bin} . ) else set path = ( /bin /usr/{bin,local/bin,X11R6/bin} . ) endif -- end ------------------------------------------------------------ -- cut here ------------------------------------------------------- /etc/csh.cshrc: #!/bin/csh if ( -e /etc/csh.alias ) source /etc/csh.alias setenv PAGER /usr/local/bin/less setenv HOSTNAME `/bin/hostname -s` setenv BLOCKSIZE 1K limit coredumpsize 0 if ( $?prompt ) then umask 2 set history = 100 set mail = /var/mail/$USER set notify if ( $?tcsh ) then set prompt = "[%n@%m] %B%~%#%b " set autolist set listjobs = long set nobeep if ( -e /etc/csh.bindkey ) source /etc/csh.bindkey endif endif -- end ------------------------------------------------------------ -- cut here ------------------------------------------------------- /etc/csh.logout: #!/bin/csh /bin/stty sane /usr/bin/clear -- end ------------------------------------------------------------ == Chris Layne ============================================================= == coredump@nervosa.com ================ http://www.nervosa.com/~coredump ==