1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-09-21 21:35:47 +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
|
1996-09-21 21:35:47 +00:00
|
|
|
#
|
|
|
|
# see also csh(1), environ(7).
|
2012-04-29 22:29:48 +00:00
|
|
|
# more examples available at /usr/share/examples/csh/
|
1996-09-21 21:35:47 +00:00
|
|
|
#
|
1994-05-30 19:09:18 +00:00
|
|
|
|
|
|
|
alias h history 25
|
|
|
|
alias j jobs -l
|
2012-04-29 22:29:48 +00:00
|
|
|
alias la ls -aF
|
1994-05-30 19:09:18 +00:00
|
|
|
alias lf ls -FA
|
2012-04-29 22:29:48 +00:00
|
|
|
alias ll ls -lAF
|
1994-05-30 19:09:18 +00:00
|
|
|
|
2014-04-14 18:07:00 +00:00
|
|
|
# These are normally set through /etc/login.conf. You may override them here
|
|
|
|
# if wanted.
|
Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;
update paths; and include everything in the "base" distribution.
The "games" distribution being optional made sense when there were more
games and we had small disks; but the "games-like" games were moved into
the ports tree a dozen years ago and the remaining "utility-like" games
occupy less than 0.001% of my laptop's small hard drive. Meanwhile every
new user is confronted by the question "do you want games installed" when
they they try to install FreeBSD.
The next steps will be:
2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and
caesar cipher (caesar, rot13) utilities. I intend to keep fortune, factor,
morse, number, primes, and random, since there is evidence that those are
still being used.
3. Merging src/games into src/usr.bin.
This change will not be MFCed.
Reviewed by: jmg
Discussed at: EuroBSDCon
Approved by: gjb (release-affecting changes)
2015-02-12 05:35:00 +00:00
|
|
|
# set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin)
|
2000-07-15 03:24:18 +00:00
|
|
|
# A righteous umask
|
2014-04-14 18:07:00 +00:00
|
|
|
# umask 22
|
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
|
|
|
|
1994-05-30 19:09:18 +00:00
|
|
|
setenv EDITOR vi
|
2018-08-08 19:24:20 +00:00
|
|
|
setenv PAGER less
|
1994-05-30 19:09:18 +00:00
|
|
|
|
|
|
|
if ($?prompt) then
|
|
|
|
# An interactive shell -- set some stuff up
|
2012-12-05 13:56:39 +00:00
|
|
|
set prompt = "%N@%m:%~ %# "
|
2012-04-29 22:29:48 +00:00
|
|
|
set promptchars = "%#"
|
|
|
|
|
1994-05-30 19:09:18 +00:00
|
|
|
set filec
|
2012-04-29 22:29:48 +00:00
|
|
|
set history = 1000
|
|
|
|
set savehist = (1000 merge)
|
|
|
|
set autolist = ambiguous
|
|
|
|
# Use history to aid expansion
|
|
|
|
set autoexpand
|
|
|
|
set autorehash
|
1994-05-30 19:09:18 +00:00
|
|
|
set mail = (/var/mail/$USER)
|
2001-01-10 17:35:28 +00:00
|
|
|
if ( $?tcsh ) then
|
|
|
|
bindkey "^W" backward-delete-word
|
|
|
|
bindkey -k up history-search-backward
|
|
|
|
bindkey -k down history-search-forward
|
|
|
|
endif
|
2012-04-29 22:29:48 +00:00
|
|
|
|
1994-05-30 19:09:18 +00:00
|
|
|
endif
|