xref: /freebsd/bin/csh/dot.cshrc (revision 61ba55bcf70f2340f9c943c9571113b3fd8eda69)
1#
2# .cshrc - csh resource script, read at beginning of execution by each shell
3#
4# see also csh(1), environ(7).
5# more examples available at /usr/share/examples/csh/
6#
7
8alias h		history 25
9alias j		jobs -l
10alias la	ls -aF
11alias lf	ls -FA
12alias ll	ls -lAF
13
14# read(2) of directories may not be desirable by default, as this will provoke
15# EISDIR errors from each directory encountered.
16# alias grep	grep -d skip
17
18# A righteous umask
19umask 22
20
21set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin)
22
23setenv	EDITOR	vi
24setenv	PAGER	less
25
26if ($?prompt) then
27	# An interactive shell -- set some stuff up
28	set prompt = "%N@%m:%~ %# "
29	set promptchars = "%#"
30
31	set filec
32	set history = 1000
33	set savehist = (1000 merge)
34	set autolist = ambiguous
35	# Use history to aid expansion
36	set autoexpand
37	set autorehash
38	set mail = (/var/mail/$USER)
39	if ( $?tcsh ) then
40		bindkey "^W" backward-delete-word
41		bindkey -k up history-search-backward
42		bindkey -k down history-search-forward
43	endif
44
45endif
46