source: hybrid/branches/releng-9.0/nanobsd/files/root/.cshrc@ 10905

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

Start generating an whole bunch of statistics on login to make debugging and
mgnt more easy todo.

File size: 1.6 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
38if ($?prompt) then
39 # Display some tricks and pointers for management on login.
40 echo ""
41 echo "Statistics:"
42 echo " - Build "`grep 'Revision:' /tools/wl-release.txt`
43 echo " - Config "`grep Generated /usr/local/etc/wleiden.yaml | tr -d '#'`
44 setenv cs_conn `arp -na | grep -v -e ' 00:15:6d' -e 'incomplete' -e 'permanent' -e ' 00:0d:b9' | wc -l`
45 setenv cs_auth `pfctl -twlportal -Tshow | wc -l`
46 echo " - $cs_conn clients and $cs_auth authenticated"
47 echo " - "`uptime`
48 echo ""
49 echo "Active Bridges:"
50 arp -na | grep -e ' 00:15:6d' | sed -e 's/^/ - /' | grep ' ' || echo " - none"
51 echo ""
52 echo "Active Neighboors:"
53 arp -a | grep -v 'permanent' | grep ' 00:0d:b9' |\
54 sed -e 's/^/ - /' -e 's/.wleiden.net//' -e 's/expires .*$//' |\
55 grep ' ' || echo " - none"
56 echo ""
57endif
Note: See TracBrowser for help on using the repository browser.