#!/usr/local/bin/bash ############################################################################## # # Enhanced Aizu Standard Environment # # Copyright 1995 Christian Goetze -- University of Aizu # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permission notice appear in # supporting documentation, and that the name "University of Aizu" # not be used in advertising or publicity pertaining to # distribution of the software without specific, written prior permission. # # # THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING # ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL # THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR # ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS # SOFTWARE. # ############################################################################## # # bash initialization. # # Modify this script at your own peril. # ############################################################################## # default umask everyone can read, but only the user can write umask 022 # check if we already know something about EASE if (! $?EASE_VERSION) then if ($?prompt) then alias cshrc-print 'echo' else alias cshrc-print 'echo >/dev/null' endif # We are starting our first shell... cshrc-print "Enhanced Aizu Standard Environment" cshrc-print "Copyright 1995 Christian Goetze -- University of Aizu" #### BEGIN PATHNAMES #### <- do not change this line -- save-alias depends on it export EASE_DIR=/public/u-aizu/Ease setenv LOCALDIR /public/u-aizu setenv USRLOCALDIR /usr/local setenv PRODUCTDIR /usr/product setenv OPENWAREDIR /usr/openware setenv LOCALDISK /mnt1c/home2 setenv PUBLIC_FTP_DIR /public/ftp setenv PUBLIC_WWW_DIR /public/www setenv PUBLIC_PUBLIC_DIR /public/public #setenv HOME #### END PATHNAMES #### <- do not change this line -- save-alias depends on it if [ -x $EASE_DIR/bin/arch ]; then export EASE_ARCH=`$EASE_DIR/bin/arch` else export EASE_ARCH=`arch` fi # Set default PATH switch ( $EASE_ARCH ) # for Sun 4.x case sun4r5: setenv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib case sun4: setenv PATH ~/bin:/usr/local/bin:/usr/ucb:/usr/bin:/bin breaksw # for SGI irix 5.x case sgi: setenv PATH ~/bin:/usr/local/bin:/usr/bsd:/usr/sbin:/usr/bin:/bin:/irix5.2/bin breaksw # for HP HP-UX 9.x case HP-UX: setenv PATH ~/bin:/bin/posix:/bin:/usr/bin:/usr/contrib/bin:/usr/local/bin breaksw endsw setenv PATH ${PATH}:$EASE_DIR/$EASE_ARCH/bin:$EASE_DIR/bin setenv PATH ${PATH}:/public/u-aizu/$EASE_ARCH/bin:/public/u-aizu/bin setenv HOSTNAME `hostname` setenv JSERVER $HOSTNAME setenv NNTP nh1 setenv NNTPSERVER nh1 # Check if EASE database server is running if (! -x $EASE_DIR/bin/easedbd) then cshrc-print "EASE isn't available on this machine - Good Luck!" else if ( ! { $EASE_DIR/bin/easedbd } ) exit if ( $?prompt || $?ease ) then # only run update for interactive sessions or during installation if ( ! $?ease ) then set ease endif if ( ! { gmake -f $EASE_DIR/install/Update -rs dotforce=${ease} } ) then cshrc-print "EASE update failed" endif endif # All other applications are accessed via EASE capsules # they only work if easedbd is running - therefore add them here only. setenv PATH $EASE_DIR/links:$PATH # We still need some basic environment variables... setenv EASE_VERSION "`easedb db.ease.version`" setenv LPWHICH `lpwhich` setenv PATH ${PATH}:"`easedb db.user.cshrc.path.PATH`" setenv EDITOR "`easedb db.user.cshrc.env.EDITOR`" setenv PAGER "`easedb db.user.cshrc.env.PAGER`" setenv PRINTER "`easedb db.user.cshrc.env.PRINTER`" cshrc-print "Version $EASE_VERSION" cshrc-print "" endif setenv PATH ${PATH}:/public/public/$EASE_ARCH/bin:/public/public/bin endif ##### USER DEFINED Environment Variables go here! ##### ##### end of USER DEFINED Environment Variables. ##### # non-interactive sessions end here if ( ! $?prompt ) exit # interactive sessions continue here # some csh specific stuff set history = 100 set filec # set prompt alias xterm_prompt 'if ( "$TERM" == xterm || "$TERM" == kterm ) echo -n "]2;`whoami`@`hostname` `dirs`"' alias cdprompt 'xterm_prompt ;set prompt = "`whoami`@`hostname` `dirs` \\ % "' # save aliases alias save-alias 'source $EASE_DIR/lib/csh/alias.csh' alias get-alias 'source ~/.cshrc' #### BEGIN ALIAS #### <- do not change this line -- save-alias depends on it alias l. 'ls -d --color=always .*' alias ll 'ls -al --color=always' alias ls 'ls -F --color=always' alias nd 'mkdir \!* ; cd \!*' alias md 'mkdir' alias rd 'mrdir' alias e 'mule \!*' alias copy 'cp' alias type 'cat' alias del 'rm' alias popd 'popd \!* >/dev/null; cdprompt' alias pushd 'pushd \!* >/dev/null; cdprompt' alias cdd 'cd \!* ; ls' alias cd 'cd \!* ; cdprompt' alias rlogin 'setenv TERM `hack-term` >&/dev/null; \rlogin \!* ; eval `unhack-term`; xterm_prompt' alias su 'su \!* ; xterm_prompt' #### END ALIAS #### <- do not change this line -- save-alias depends on it cd .