xref: /dragonfly/share/skel/dot.cshrc (revision e0eb7cf0)
1# $FreeBSD: head/share/skel/dot.cshrc 278616 2015-02-12 05:35:00Z cperciva $
2#
3# .cshrc - csh resource script, read at beginning of execution by each shell
4#
5# see also csh(1), environ(7).
6#
7
8alias h		history 25
9alias j		jobs -l
10alias la	ls -aF
11alias lf	ls -FA
12alias ll	ls -lAF
13
14# These are normally set through /etc/login.conf.  You may override them here
15# if wanted.
16# set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin)
17# setenv	BLOCKSIZE	K
18# A righteous umask
19# umask 22
20
21setenv	EDITOR	vi
22setenv	PAGER	less
23
24if ($?prompt) then
25	# An interactive shell -- set some stuff up
26	set prompt = "%N@%m:%~ %# "
27	set promptchars = "%#"
28
29	set filec
30	set history = 1000
31	set savehist = (1000 merge)
32	set autolist = ambiguous
33	# Use history to aid expansion
34	set autoexpand
35	set autorehash
36	set mail = (/var/mail/$USER)
37	if ( $?tcsh ) then
38		bindkey "^W" backward-delete-word
39		bindkey -k up history-search-backward
40		bindkey -k down history-search-forward
41	endif
42
43endif
44