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