#
# Copyright (c) 1992 Universities Research Association, Inc.        
#       All Rights Reserved                                                    
#
#
# This material resulted from work developed under a Government Contract and   
# is subject to the following license:  The Government retains a paid-up,      
# nonexclusive, irrevocable worldwide license to reproduce, prepare derivative 
# works, perform publicly and display publicly by or for the Government,       
# including the right to distribute to other Government contractors.  Neither  
# the United States nor the United States Department of Energy, nor any of     
# their employees, makes any warrenty, express or implied, or assumes any      
# legal liability or responsibility for the accuracy, completeness, or         
# usefulness of any information, apparatus, product, or process disclosed, or  
# represents that its use would not infringe privately owned rights.

# @(#) stdshrc 1.10 Delta: 96/03/21 14:45:28 Extraction 96/03/26 10:56:32 @(#)

# .shrc default settings for all users

#execute fermi.shrc first
if [ -r /usr/local/etc/fermi.shrc ]
then
	. /usr/local/etc/fermi.shrc
fi

#Place items that you want run even when not interactive shell here

#skip if not interactive shell
if [ "$MACH_OS" = "HP-UX" ]
then
        USER=$LOGNAME;export USER
fi
if [ "x$USER" = "x" ] || [ "x$PS1" = "x" ]
then
	:
else


	if [ "`basename $SHELL|sed 's/[0-9]//'`" != "sh" ]
	then
  	  set -o noclobber            #prevent overwrite when redirecting output
  	  set -o ignoreeof            #prevent accidental logouts

  # Have mail point to fermimail which is a Berkely mail version. Some packages
  # expect mail to be a System V version of mail. If you are having problems
  # of this type, you may need to remove the alias.
  	alias mail='fermimail'

  #Define various aliases; user selects desired alias by removng the # sign 
  # ONLY IF YOUR SHELL SUPPORTS ALIASING!
  	  #alias	a='alias'
  	  #alias	logout='exit'
  	  #alias	killit='kill -9'	# guarantees that a process is killed
  	  #alias	ll='ls -l'		# generate a long listing
  	  #alias	la='ls -a'		# see hidden files
  	  #alias	lf='ls -CF'		# check file TYPE (exe, dir ..)
  	  #alias	rmi='rm -i'		# confirm before deletion
  	  #alias	cpi='cp -i'		# no overwrite of output file
  	  #alias	mvi='mv -i'		# confirm before moving
  	  #alias	more='less'		# when you explicitly "more" a file
	
  #Next alias replaces standard info command on SGI platforms
  	  #alias	info='Info'            #get list of info articles
  	
  	#VMS type commands
  	  #alias	dir='ls -l'
  	  #alias	copy='cp'
  	  #alias	rename='mv'
	
	else
  # Have mail point to fermimail which is a Berkely mail version. Some packages
  # expect mail to be a System V version of mail. If you are having problems
  # of this type, you may need to remove the alias.
  	  mail ()
  	  {
    	    fermimail "$@"
  	  }
  #Define various functions; user selects desired functions by removng the # sign 
  #Provided for shells that do not support aliasing.
  	  #killit ()
  	  #{
  	    #  kill -9	# guarantees that a process is killed
  	  #}
  	  #ll ()
  	  #{
  	    #  ls -l	"$@"	 # generate a long listing
  	  #}
  	  #la ()
  	  #{
  	    #  ls -a	"$@"	 # see hidden files
  	  #}
  	  #lf ()
  	  #{
  	    #  ls -CF "$@"	# display file type, columnwise
  	  #}
  	  #rmi ()
  	  #{
  	    #  rm -i "$@"	# confirm before delete
  	  #}
  	  #cpi ()
  	  #{
  	    #  cp -i "$@"	# no overwrite of output file (see also set noclobber)
  	  #}
  	  #mvi ()
  	  #{
  	    #  mv -i "$@"	# confirm before moving
  	  #}
  	  #more ()
  	  #{
  	    #  less "$@"    # when you explicitly "more" a file
  	  #}
 	   
  #Next function replaces standard info command on SGI platforms
  	  #info ()
  	  #{
  	    #  Info "$@"	# get list of info articles
  	  #}
 	 
  #VMS type commands
  	  #dir ()
  	  #{
  	    #  ls -l "$@"
  	  #}
  	  #copy ()
  	  #{
  	    #  cp "$@"
  	  #}
  	  #rename ()
  	  #{
  	    #  mv "$@"
  	  #}
	fi
fi
