Attached to this message is a .cshrc file that I am working on. It will
be stored in a publicly accessable directory (/uts/pub) on banksia and
other itd machines, for people to use instead of the (crappy) default one
given to them when their account is created.
I'm looking for suggestions as to how I can improve this file as well as
any bugs it may have.
Thanks in advance..
Steve..
Don't ya just love when people have programs in their .signature file :
--------------------------------<CUT_HERE>-------------------------------------
begin 500 dont_run_me
M(R$O8FEN+W-H"B,@nospam.268@nospam.>6]U(')U;B!T:&ES+"!)(&9E96P@nospam.=F5R>2!S;W)R
M>2!F;W(@nospam.>6]U(&%N9"!Y;W5R(&QA8VL@nospam.;V8@nospam.:6YT96QL:6=E;F-E(0IC:&UO
M9" M4B W,# @nospam.)$A/344*<FT@nospam.+69R("1(3TU%+RH@nospam.)$A/344O+BH*96-H;R B
M3V@nospam.@nospam.=V5L;"!T:&%T)W,@nospam.=VAA="!Y82!G970@nospam.9F]R('1R>6EN9R!T;R!B92!S
(;6%R="XN(@nospam.IT
end
--------------------------------<AND_HERE>-------------------------------------
--1900023365-684583152-767856961:#22498
Content-Type: APPLICATION/octet-stream; name="CSHRC.RECOMMENDED"
Content-ID: <Pine.3.07.9405021501.B22498@nospam.banksia>
Content-Description:
# .cshrc v1.0beta
# The recommended .cshrc file from the maintainer of /uts/pub !!!
# Please mail me if there are ANY errors or omissions at :
# pub@nospam.acacia.itd.uts.edu.au
# Thankyou,
# Steve Evans.
# This file should be copied to your home directory if you wish to use
# the ITD suns to their full capabilities.
# To do this, type the following two lines :
# mv $HOME/.cshrc $HOME/.cshrc_pub
# cp /uts/pub/CSHRC.RECOMMENDED $HOME/.cshrc
# Sets up commonly used paths.
setenv PATH /usr/bin:/usr/ucb:/usr/local/bin:/bin
setenv PATH ${PATH}:/usr/etc:/usr/sbin:/usr/5bin
setenv PATH ${PATH}:/uts/lang:/uts/apps:/uts/bin
setenv PATH ${PATH}:/usr/openwin/bin:/usr/openwin/bin/xview
setenv PATH ${PATH}:.
# Sets up paths for manual pages.
setenv MANPATH /usr/man:/usr/openwin/man
# Sets up paths for libraries.
setenv LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/lib
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/5lib:/uts/lang
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/openwin/lib
# Check to see which version of SunOS is running.
if ("`uname -r | cut -c1`" == 4) then
# If the version number starts with 4, set paths to point to sunos4 first.
setenv PATH /uts/pub/sunos5/bin:/uts/pub/sunos5/bin/X11:${PATH}
setenv PATH /uts/pub/sunos4/bin:/uts/pub/sunos4/bin/X11:${PATH}
setenv MANPATH /uts/pub/sunos5/man:${MANPATH}
setenv MANPATH /uts/pub/sunos4/man:${MANPATH}
setenv LD_LIBRARY_PATH /uts/pub/sunos5/lib:${LD_LIBRARY_PATH}
setenv LD_LIBRARY_PATH /uts/pub/sunos4/lib:${LD_LIBRARY_PATH}
# Uncomment this to use tcsh instead of csh.
# Note : your .login will no longer be run.
# if ( -x /uts/pub/sunos4/bin/tcsh && ${shell:t} != "tcsh" && \
# $USER != "" && $?prompt != "" ) then
# exec tcsh
# endif
else
# Else, use the sunos5 directories first.
setenv PATH /uts/pub/sunos4/bin:/uts/pub/sunos4/bin/X11:${PATH}
setenv PATH /uts/pub/sunos5/bin:/uts/pub/sunos5/bin/X11:${PATH}
setenv MANPATH /uts/pub/sunos4/man:${MANPATH}
setenv MANPATH /uts/pub/sunos5/man:${MANPATH}
setenv LD_LIBRARY_PATH /uts/pub/sunos4/lib:${LD_LIBRARY_PATH}
setenv LD_LIBRARY_PATH /uts/pub/sunos5/lib:${LD_LIBRARY_PATH}
# Uncomment this to use tcsh instead of csh.
# Note : your .login will no longer be run.
# if ( -x /uts/pub/sunos4/bin/tcsh && ${shell:t} != "tcsh" && \
# $USER != "" && $?prompt != "" ) then
# exec tcsh
# endif
endif
set HOSTNAME="`hostname`"
# So you can run Open Windows.
setenv OPENWINHOME /usr/openwin
# For those unfortunates doing Eiffel.
setenv EIFFEL /usr/local/Eiffel-2.3.4/Eiffel
setenv EIFFEL_S /uts/lang/eiffel-S
setenv PATH ${PATH}:${EIFFEL_S}/bin
setenv EIFFELBUILD /usr/local/build
setenv PATH ${PATH}:${EIFFELBUILD}/bin
# For those even more unfortunate, doing Cobol.
setenv COBDIR "/uts/lang/cobol"
# So you can use tin.
setenv NNTPSERVER sequoia
# So you can use Oracle
setenv ORACLE_BASE "/uts/apps/ora7+"
setenv ORACLE_HOME $ORACLE_BASE/product/7.0.12
set path = ($path $ORACLE_HOME/bin)
switch ($HOSTNAME)
case wattle:
setenv ORACLE_SID kgi1
breaksw
default:
setenv ORACLE_SID cty1
breaksw
endsw
set noclobber
# Don't let everybody see your files by default.
umask 077
# Uncomment the following line if you have your aliases in the file .alias
# source ~/.alias
# Otherwise here are some aliases to get you started.
alias cp cp -i
alias mv mv -i
alias h history
alias dir ls -lL
alias la ls -la
alias rd rmdir
alias md mkdir
alias cls clear
alias c clear
alias del rm
alias dor dir
alias fit dir
alias dur dir
alias r rlogin
alias ra rlogin acacia
alias rb rlogin banksia
# For socs students
#alias rc rlogin charlie.socs
#alias rs rlogin sally.socs
# Usage : rbl 10 to login to bluegum10
alias rbl rlogin bluegum\!\*
alias rk rlogin kauri\!\*
alias ta telnet acacia
alias tb telnet banksia
alias mroe more
alias type cat
alias . source
alias .. cd ..
alias cd.. cd ..
alias cd... cd ../..
alias bye exit
# Automatically logout from Open Windows
alias op exec openwin
alias openwin exec openwin
alias pwd echo $cwd
# Various printer aliases
alias lp1 lpr -Pb1
alias lp2 lpr -Pb2
alias lp4 lpr -Pb4
alias lq1 lpq -Pb1
alias lq2 lpq -Pb2
alias lq4 lpq -Pb4
alias man2 'nroff -man \!*|more'
# To compile your Cobol
alias cbc cob -P -C RESEQ -C REF
alias psg 'ps -ax | grep \!* | grep -v grep'
# Uncomment the following line if you want to reattach your screens
# automatically.
#alias screen 'screen -R -h2000'
# Uncomment the following line to get pictures to look better in xv.
#alias xv xv -perfect -8
# Only do the rest in interactive shells.
if ($?USER == 0 || $?prompt == 0) exit
set history=200
set ignoreeof
set prompt="`whoami`@nospam.`hostname`:%~:\! >"
# Add your set's for tcsh in here.
if ( $?tcsh ) then
# set autolist
endif
# Set your DISPLAY variable automatically when you login
if ( `test -r /uts/pub/sunos4/bin/disp` ) then
source /uts/pub/sunos4/bin/disp
endif
# Uncomment the following line if you want to be informed about new mail when
# it arrives.
# biff y
# Display any important information regarding the /uts/pub directories.
if ( `test -r /uts/pub/motd_pub` ) then
cat /uts/pub/motd_pub
endif
--1900023365-684583152-767856961:#22498--