Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 1996 02:51:22 -0800 (PST)
From:      invalid opcode <coredump@nervosa.com>
To:        FreeBSD-current <current@freebsd.org>
Subject:   changes to /etc/csh.*
Message-ID:  <Pine.BSF.3.91.960307021700.724B-100000@nervosa.com>

next in thread | raw e-mail | index | archive | help
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 ==



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960307021700.724B-100000>