#------------------------------------------------------------------------------- # TCSHRC FILE - James Wookey, 2007 #------------------------------------------------------------------------------- # major paths set path = (. /usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin) setenv MANPATH /usr/share/man:/usr/X11R6/man:/usr/local/man:/usr/man setenv LD_LIBRARY_PATH "" setenv DYLD_LIBRARY_PATH "" # shell control options limit coredumpsize 0 set history=120 set ignoreeof set filec set savehist=40 set prompt="`hostname`(\!): " set linec # Some handy aliases alias cp 'cp -i' alias mv 'mv -i' alias pwd 'echo $cwd' alias h 'history' alias x 'chmod +x' alias . 'echo $cwd' alias .. 'cd ..' alias - 'cd -' alias ff 'find . -name \!* -print' alias mdf 'mdfind -onlyin "`pwd`"' alias la 'ls -alh' alias ll 'ls -lh' alias ls 'ls -F' umask 022 # a bit of xterm title and command prompt hacking ... if ($?tcsh) then switch ($TERM) case "xterm*": set prompt="%{\033]0;%m(%n):%~\007%}`hostname -s`: " breaksw default: set prompt="`hostname -s`: " breaksw endsw else set prompt="`hostname -s`: " endif # X11 setup for iTerm / Terminal if ($?TERM_PROGRAM) then if (($TERM_PROGRAM == 'iTerm.app' | $TERM_PROGRAM == 'Apple_Terminal') &\ $?DISPLAY == 0) then setenv DISPLAY :0.0 endif endif # setup fink software test -r /sw/bin/init.csh && source /sw/bin/init.csh