source: hybrid/branches/releng-10/nanobsd/files/root/.cshrc

Last change on this file was 10920, checked in by rick, 13 years ago

This kind of hacks makes me cry, but are needed for the normal_proxy setups.

Related-To: beheer:ticket:225

File size: 1.3 KB
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
8alias h history 25
9alias j jobs -l
10alias la ls -a
11alias lf ls -FA
12alias ll ls -lA
13
14# A righteous umask
15umask 22
16
17set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin /tools)
18
19setenv EDITOR vim
20setenv PAGER more
21setenv BLOCKSIZE K
22
23if ($?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
36endif
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.
42if ($?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
48endif
49
50if ($?prompt) then
51 [ -x /etc/motd.cshrc ] && source /etc/motd.cshrc
52endif
Note: See TracBrowser for help on using the repository browser.