1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-09-13 23:11:13 +00:00
|
|
|
#
|
o Migrate path, umask from dot.login to dot.cshrc
o Comment out display of fortune by default.
o Synch root's .cshrc/.login and non-root's .cshrc/.login in terms of
gratuitous variables set (EDITOR).
o Remove some commented out variables set inconsistently or gratuitously,
such as Interviews settings, 8-bit German locale for root only.
o Synchronize comments in header, as well as references to appropriate man
pages.
o Remove MANPATH setting as apparently /etc/manpath.config does all that
already.
Similar changes probably need to be made in other dot.* files for root
and skel, as all of these files seem to set different aliases, environmental
variables, prompts, and have different semantics.
As a result of this patch, leaving aside the setting of a special prompt
for root, users of csh and tcsh should find similar environments when
logging in or su'ing to any account using that shell.
Reviewed by: asmodai, nbm, will
2000-03-25 20:23:39 +00:00
|
|
|
# .cshrc - csh resource script, read at beginning of execution by each shell
|
|
|
|
#
|
|
|
|
# see also csh(1), environ(7).
|
|
|
|
#
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1995-11-30 02:28:37 +00:00
|
|
|
alias h history 25
|
|
|
|
alias j jobs -l
|
|
|
|
alias la ls -a
|
|
|
|
alias lf ls -FA
|
|
|
|
alias ll ls -lA
|
1993-06-20 13:41:45 +00:00
|
|
|
|
2000-05-28 15:09:31 +00:00
|
|
|
# A righteous umask
|
o Migrate path, umask from dot.login to dot.cshrc
o Comment out display of fortune by default.
o Synch root's .cshrc/.login and non-root's .cshrc/.login in terms of
gratuitous variables set (EDITOR).
o Remove some commented out variables set inconsistently or gratuitously,
such as Interviews settings, 8-bit German locale for root only.
o Synchronize comments in header, as well as references to appropriate man
pages.
o Remove MANPATH setting as apparently /etc/manpath.config does all that
already.
Similar changes probably need to be made in other dot.* files for root
and skel, as all of these files seem to set different aliases, environmental
variables, prompts, and have different semantics.
As a result of this patch, leaving aside the setting of a special prompt
for root, users of csh and tcsh should find similar environments when
logging in or su'ing to any account using that shell.
Reviewed by: asmodai, nbm, will
2000-03-25 20:23:39 +00:00
|
|
|
umask 22
|
|
|
|
|
2000-03-07 18:52:37 +00:00
|
|
|
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin)
|
|
|
|
|
o Migrate path, umask from dot.login to dot.cshrc
o Comment out display of fortune by default.
o Synch root's .cshrc/.login and non-root's .cshrc/.login in terms of
gratuitous variables set (EDITOR).
o Remove some commented out variables set inconsistently or gratuitously,
such as Interviews settings, 8-bit German locale for root only.
o Synchronize comments in header, as well as references to appropriate man
pages.
o Remove MANPATH setting as apparently /etc/manpath.config does all that
already.
Similar changes probably need to be made in other dot.* files for root
and skel, as all of these files seem to set different aliases, environmental
variables, prompts, and have different semantics.
As a result of this patch, leaving aside the setting of a special prompt
for root, users of csh and tcsh should find similar environments when
logging in or su'ing to any account using that shell.
Reviewed by: asmodai, nbm, will
2000-03-25 20:23:39 +00:00
|
|
|
setenv EDITOR vi
|
1995-11-30 02:28:37 +00:00
|
|
|
setenv PAGER more
|
|
|
|
setenv BLOCKSIZE K
|
1993-06-20 13:41:45 +00:00
|
|
|
|
|
|
|
if ($?prompt) then
|
1995-11-30 02:28:37 +00:00
|
|
|
# An interactive shell -- set some stuff up
|
1997-11-07 17:22:32 +00:00
|
|
|
set prompt = "`hostname -s`# "
|
1994-01-22 10:58:26 +00:00
|
|
|
set filec
|
1995-11-30 02:28:37 +00:00
|
|
|
set history = 100
|
|
|
|
set savehist = 100
|
|
|
|
set mail = (/var/mail/$USER)
|
2001-01-10 02:37:16 +00:00
|
|
|
if ( $?tcsh ) then
|
|
|
|
bindkey "^W" backward-delete-word
|
|
|
|
bindkey -k up history-search-backward
|
|
|
|
bindkey -k down history-search-forward
|
|
|
|
endif
|
1993-06-20 13:41:45 +00:00
|
|
|
endif
|