dot.cshrc revision 234133
150472Speter# $FreeBSD: head/etc/root/dot.cshrc 234133 2012-04-11 14:13:22Z eadler $
239145Sbrian#
358570Srwatson# .cshrc - csh resource script, read at beginning of execution by each shell
458570Srwatson#
558570Srwatson# see also csh(1), environ(7).
6233429Seadler# more examples available at /usr/share/examples/csh/
758570Srwatson#
837Srgrimes
912539Sjkhalias h		history 25
1012539Sjkhalias j		jobs -l
11233429Seadleralias la	ls -aF
1212539Sjkhalias lf	ls -FA
13233429Seadleralias ll	ls -lAF
1437Srgrimes
1561029Sasmodai# A righteous umask
1658570Srwatsonumask 22
1758570Srwatson
18170088Sdougbset path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
1957802Srwatson
2058570Srwatsonsetenv	EDITOR	vi
21233429Seadlersetenv	PAGER	less
2212539Sjkhsetenv	BLOCKSIZE	K
2337Srgrimes
2437Srgrimesif ($?prompt) then
2512539Sjkh	# An interactive shell -- set some stuff up
26234133Seadler	if ($uid == 0) then
27234133Seadler		set user = root
28234133Seadler	endif
29234133Seadler	set prompt = "%n@%m:%/ %# "
30233429Seadler	set promptchars = "%#"
31233429Seadler
32997Srgrimes	set filec
33233429Seadler	set history = 1000
34234133Seadler	set savehist = (1000 merge)
35233429Seadler	set autolist = ambiguous
36233429Seadler	# Use history to aid expansion
37233429Seadler	set autoexpand
38233429Seadler	set autorehash
3912539Sjkh	set mail = (/var/mail/$USER)
4070859Sarchie	if ( $?tcsh ) then
4170859Sarchie		bindkey "^W" backward-delete-word
4270859Sarchie		bindkey -k up history-search-backward
4370859Sarchie		bindkey -k down history-search-forward
4470859Sarchie	endif
45233429Seadler
4637Srgrimesendif
47