Line | |
---|
1 | # $FreeBSD: releng/9.0/etc/root/dot.cshrc 170088 2007-05-29 06:37:58Z dougb $
|
---|
2 | #
|
---|
3 | # .cshrc - csh resource script, read at beginning of execution by each shell
|
---|
4 | #
|
---|
5 | # see also csh(1), environ(7).
|
---|
6 | #
|
---|
7 |
|
---|
8 | alias h history 25
|
---|
9 | alias j jobs -l
|
---|
10 | alias la ls -a
|
---|
11 | alias lf ls -FA
|
---|
12 | alias ll ls -lA
|
---|
13 |
|
---|
14 | # A righteous umask
|
---|
15 | umask 22
|
---|
16 |
|
---|
17 | set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin /tools)
|
---|
18 |
|
---|
19 | setenv EDITOR vim
|
---|
20 | setenv PAGER more
|
---|
21 | setenv BLOCKSIZE K
|
---|
22 |
|
---|
23 | if ($?prompt) then
|
---|
24 | # An interactive shell -- set some stuff up
|
---|
25 | set prompt = "`/bin/hostname -s`# "
|
---|
26 | set filec
|
---|
27 | set histfile = /tmp/.history
|
---|
28 | set history = 1000
|
---|
29 | set savehist = 1000
|
---|
30 | set mail = (/var/mail/$USER)
|
---|
31 | if ( $?tcsh ) then
|
---|
32 | bindkey "^W" backward-delete-word
|
---|
33 | bindkey -k up history-search-backward
|
---|
34 | bindkey -k down history-search-forward
|
---|
35 | endif
|
---|
36 | endif
|
---|
37 |
|
---|
38 | # Quirck to make sure the current interactive session actually has FIB=0
|
---|
39 | # assigned. When sshd(4) is running under FIB=1 for example, it will default to
|
---|
40 | # FIB=1. This will make sure the shell behaviour routing wise is like an
|
---|
41 | # normal client.
|
---|
42 | if ($?prompt) then
|
---|
43 | if (`sysctl -n net.my_fibnum` != 0) then
|
---|
44 | echo "# WARN: Multiple routing tables use! Defaulting new shell to FIB=0"
|
---|
45 | setfib -0 csh
|
---|
46 | logout
|
---|
47 | endif
|
---|
48 | endif
|
---|
49 |
|
---|
50 | if ($?prompt) then
|
---|
51 | [ -x /etc/motd.cshrc ] && source /etc/motd.cshrc
|
---|
52 | endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.