echo Running cshrc file Long but generic cshrc Works under tcsh Last Update 16 Feb 1997 By David Krovich Henry Ware et al Still doesn t alway set screen size use rs to fix This file is read by a csh on startup A tcsh will also read it if there is no tcshrc available tcsh is a extended version of the csh setenv is csh s command to set an evironmental variablethese variables are exported to all children of the shell set is a command which sets a variable which is not exported alias allows the defining of short cuts Aliases are a good place to start customizing They start at about line 170 Single and double quotes have distinct meanings in unix shells use with caution This file should not normally print anything out It may be run in any number of circumstances Comment lines begin with more on csh information is available via man csh The path variable tells where in the file system to look for executables associated with commands that have been issued Set the path to a reasonable set set path HOME bin bin usr ucb usr bin usr sbin usr openwin bin usr openwin usr local bin usr hosts resolve resolve cs16 current usr bin X11 usr local bin X11 usr lib X11 usr X11 bin etc usr etc lib usr lib usr local lib tex dvi2ps usr local lib tex fonts usr lib nis sbin usr sbin usr local games usr games This next line causes non interactive shells to stop reading They generally inherit everything they need if prompt 0 exit Source System Files setenv RC VERSION 2 if x etc system cshrc source etc system cshrc if x usr local system cshrc source usr local system cshrc Set Enviroment Variables C Shell This next removes the space which is sometimes in front of USER setenv USER USER This next is becoming redundant setenv OPENWINHOME usr openwin home hayhurst echo WWWHOME http www cs wvu edu home hayhurst public html setenv DEBUG 0 setenv WWWHOME http www cs wvu edu HOME public html setenv MAIL usr spool mail USER you could set this to some other editor or to usr local bin emacs nw home hayhurst nslookup WHERE setenv EDITOR usr local bin emacs set this to a printer near you Server names wvu edu setenv PRINTER ps748esb Address 157 182 140 2 Name boole csee wvu edu Find locations not bulletproof Address 157 182 194 80 find out where we are logged in setenv WHERE uname n cut f1 d we really need full domain name also setenv WHEREFROM who am i cut f2 d cut f1 d cut f1 d cut f1 d cut f2 d setenv DOMAIN nslookup WHERE grep WHERE cut f2 4 d head 1 setenv MANPATH HOME man OPENWINHOME man usr local man usr man setenv LD LIBRARY PATH usr lib usr openwin lib lib usr local lib echo You are logged in from WHEREFROM This by itself can cause problems limit coredumpsize 0 true Sets for the shell set filec set notify set symlinks ignore set hardpaths set dunique set cdpath set time 15 set history 40 set savehist 10 set nonomatch set noclobber set autologout 60 set correct cmd set ignoreeof mesg n uncomment to make it more friendly See the man page enables filename completion notifies when background processes complete cant exit via ctrl d to disable talks and writes Set Prompts set prompt WHERE cwd set promptchars set prompt set prompt2 RShell programming set prompt3 Correct R y n e What type of Unix are we running There should be a less brittle way if uname s SunOS then if WHERE h then setenv OSTYPE SunOS else setenv OSTYPE Solaris endif else endif set to ULTRIX Linux setenv OSTYPE uname s System specific customization switch OSTYPE case SunOS if TERM xterm then unset autologout echo Autologout unset endif set path path usr 5bin usr kvm usr ccs bin breaksw case Solaris if TERM xterm TERM sun cmd then unset autologout echo Autologout unset endif set path HOME bin solaris opt SUNWspro bin usr openwin demo usr kvm usr xpg4 bin usr ccs bin path breaksw case ULTRIX breaksw case Linux breaksw case default echo Cool A new machine Using default settings breaksw endsw ALIASES These are csh customized but are intended to work under tcsh refers to any arguments to the aliased command These can references each other and won t get caught by a recursion General aliases alias copy cp When an aliased command is issued the command line is edited and The substitution is made alias cls clear home hayhurst help alias cp cp i The Unix help command is man For example type alias dir ls l man man alias del rm alias f finger alias h history alias help echo The Unix help command is man For example type man man alias j jobs alias lo clear logout 2 commands are executed alias ls ls or ls F alias ll bin ls l alias m more alias md mkdir alias mv usr bin mv i alias newpasswd nispasswd alias purge bin rm f alias p bin rm f alias r rlogin alias rename alias alias alias alias mv rm rm i rd rmdir term echo TERM t telnet alias update source cshrc source login X Window aliases alias al echo autologout alias disp echo DISPLAY if DISPLAY is set many programs will assume you are running X alias nodisp unsetenv DISPLAY alias ual unset autologout edit emacs aliases alias e emacs nw alias edit emacs By default emacs will attempt to open a new window if display is set emacs nw overrides this emacs appears in the current window These next two override this behavior nw will make no window the default yw will make yes window the default resets the default default alias nw alias edit emacs nw alias emacs emacs nw alias yw alias edit emacs alias emacs emacs USENET News aliases most Usenet news is on news cerc wvu edu Use rtin to read these alias rtin setenv NNTPSERVER news cerc wvu edu tin r f HOME newsrc cerc department news groups are on backus read with ltin alias ltin setenv NNTPSERVER backus cs wvu edu tin r f HOME newsrc Printer aliases pretty print an ascii file alias pprint mp o s lpr P PRINTER d Shortcut aliases alias e3270 telnet e3270 wvnet edu alias vax telnet wvnvaxa wvnet edu Term aliases alias vt100 setenv TERM vt100 echo TERM set to vt100 alias vt102 setenv TERM vt102 echo TERM set to vt102 alias xt setenv TERM xterm echo TERM set to xterm mail aliases alias brett mail brett d hayhurst saic com all cs 604 alias cs604 mail hayhurst kumar smadhus2 wvu edu deepakjha y3k yahoo com vshashikanth yahoo com jstoffa2 wvu edu wafi cellison yma stat wvu edu lbixia yan jaesunlee hanmail net weichengb yahoo com chen605 yahoo com hluo ykxia yahoo com nao1977 hotmail com jinka19 yahoo com gundala jmngwu yahoo com hhyin828 yahoo com ctongshan hotmail com illuri lordjimz hotmail com yerong 2000 hotmail com alias cs176 mail hayhurst trhodes3 …
View Full Document
Unlocking...