dustin / dotfiles

Finally pushing up my dotfiles from hg.

dotfiles / .cshrc
100644 133 lines (109 sloc) 3.013 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Copyright (c) 2002 Dustin Sallings
 
# Need this for the path stuff below
set systype=`echo $version | sed -e 's/(//g' -e 's/)//g' | awk '{print $5}'`
 
# This large chunk of crap is just here to set up my path
set originalpath=($path)
set path=()
# Stuff we want put in front of the path
foreach d (~/local.bin ~/bin ~/bin/$systype /opt/local/bin)
if (-d $d) then
set path=($path $d)
endif
end
# OK, fix the path so far
set path=($path $originalpath)
# Don't need the original path anymore
unset originalpath
# Build out the rest of the path
foreach d (/usr/pkg/bin /usr/local/bin /usr/pkg/sbin \
/usr/X11R6/bin /sbin /usr/sbin /usr/pkg/java/bin \
/usr/local/teTeX/bin/powerpc-apple-darwin-current \
/afs/@cell/system/@sys/usr/afsws/bin \
/afs/@cell/system/@sys/usr/afs/bin )
 
if (-d $d) then
set path=($path $d)
endif
end
 
# Bring in the fink
if ( -r /sw/bin/init.csh ) then
source /sw/bin/init.csh
endif
 
# Stuff that only applies when I login
if ($?prompt) then
set savehist=(500 merge)
set correct=all
set rmstar
set noclobber
set fignore=( \~ .bak .o )
set autocompletion
set nobeep
set tperiod=10
 
# set dunique
# set dextract
# set savedirs
 
set cdpath=( $HOME )
set watch=(all all)
umask 077
setenv PAGER more
 
# Default editor is vi
setenv EDITOR vi
setenv VEEEYE vi
# Find vim
if (-d $HOME/MyApps/Vim.app) then
setenv VEEEYE $HOME/MyApps/Vim.app/Contents/MacOS/Vim
else
which vim >& /dev/null
if ( $? == 0 ) then
setenv VEEEYE vim
endif
endif
# Find emacs
if ( -d $HOME/MyApps/Emacs.app) then
setenv EMACSCLIENT $HOME/MyApps/Emacs.app/Contents/MacOS/bin/emacsclient
else
setenv EMACSCLIENT emacsclient
endif
 
setenv ALTERNATE_EDITOR $VEEEYE
setenv EDITOR $EMACSCLIENT
setenv VISUAL $EDITOR
setenv NNTPSERVER news
setenv CVS_RSH ssh
 
# Tell perforce to use my merge command
setenv P4MERGE p4merge
 
setenv IRCNICK CiscoKid
setenv IRCNAME "Dustin Sallings"
setenv EFIRCSERVER \
"efnet.ipv6.xs4all.nl irc.homelien.no irc.efnet.nl \
irc-efnet.svc.us.xo.net irc.easynews.com irc.prison.net"
setenv FNIRCSERVER \
"irc.ipv6.freenode.net irc.us.freenode.net irc.freenode.net"
 
setenv DN uid=dustin,ou=agents,dc=spy,dc=net
 
set filec
set history=1000
set prompt = "%m:%~ \!%# "
set time="%Uu %Ss %E %P %X+%Dk %I+%Oio %Fpf+%Ww"
 
bindkey -k up history-search-backward
bindkey -k down history-search-forward
 
setenv RUNTIMEPATH \
/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
 
setenv SmartEiffel $HOME/lib/SmartEiffel/sys/system.se
 
# Aliases are pulled in separately
    if ( -r ~/.aliases ) then
        source ~/.aliases
    endif
 
# So are completions
if ( -r ~/.completions ) then
source ~/.completions
endif
 
if ( -r ~/.completions.local ) then
source ~/.completions.local
endif
 
# Site local overrides
if ( -r ~/.cshrc.local ) then
source ~/.cshrc.local
endif
 
endif
# set autologout=30
 
setenv PAGER less
 
# Cores suck in OS X. I'll enable it when I need it.
limit coredumpsize 0