dot.cshrc revision 242514
150476Speter# $FreeBSD: head/share/skel/dot.cshrc 242514 2012-11-03 14:46:15Z eadler $
218450Swosch#
358570Srwatson# .cshrc - csh resource script, read at beginning of execution by each shell
418450Swosch#
518450Swosch# see also csh(1), environ(7).
6234823Seadler# more examples available at /usr/share/examples/csh/
718450Swosch#
81638Srgrimes
91638Srgrimesalias h		history 25
101638Srgrimesalias j		jobs -l
11234823Seadleralias la	ls -aF
121638Srgrimesalias lf	ls -FA
13234823Seadleralias ll	ls -lAF
141638Srgrimes
1563199Srwatson# A righteous umask
1658570Srwatsonumask 22
1758570Srwatson
18170119Sdougbset path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
1958570Srwatson
201638Srgrimessetenv	EDITOR	vi
21242514Seadlersetenv	PAGER	more
2212554Sjkhsetenv	BLOCKSIZE	K
231638Srgrimes
241638Srgrimesif ($?prompt) then
251638Srgrimes	# An interactive shell -- set some stuff up
26234823Seadler	if ($uid == 0) then
27234823Seadler		set user = root
28234823Seadler	endif
29234823Seadler	set prompt = "%n@%m:%/ %# "
30234823Seadler	set promptchars = "%#"
31234823Seadler
321638Srgrimes	set filec
33234823Seadler	set history = 1000
34234823Seadler	set savehist = (1000 merge)
35234823Seadler	set autolist = ambiguous
36234823Seadler	# Use history to aid expansion
37234823Seadler	set autoexpand
38234823Seadler	set autorehash
391638Srgrimes	set mail = (/var/mail/$USER)
4070892Sarchie	if ( $?tcsh ) then
4170892Sarchie		bindkey "^W" backward-delete-word
4270892Sarchie		bindkey -k up history-search-backward
4370892Sarchie		bindkey -k down history-search-forward
4470892Sarchie	endif
45234823Seadler
461638Srgrimesendif
47