# login script of Wayne Pollock #Last updated: 5/1/07 # LEVEL is used to destinguish between login shell # windows (root windows) and other shells, because # a different prompt is used in each case. This # must be set before invoking .bashrc! export LEVEL=0 # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs: set -o ignoreeof # only "exit" or "logout" will log me off the system. shopt -s huponexit mesg n # Don't allow anyone to interrupt my session umask 027 # Create files with group, other permissions turned off. ulimit -c 0 # Prevent a crashed program from creating a "core" file. PATH=$HOME/bin:$PATH:/usr/local/sbin:/sbin:/usr/sbin CDPATH=":$HOME:$HOME/man:$HOME/bin" MANPATH="$HOME/man:$MANPATH" # The following changes the sort order to ACSII order, which does #not ignore case or punctuation characters (such as leading periods). LC_COLLATE=C EDITOR=vim VISUAL=$EDITOR FCEDIT=$EDITOR PAGER=less ENV=$HOME/.bashrc HISTSIZE=1000 HISTFILESIZE=1000 LESS='-fXemPm?f%f .?lbLine %lb?L of %L..:$' # Set options for less command MAILCHECK=1 MAILPATH=/var/spool/mail/$USER'?Hey! You have new mail!' #PS1='[\u@\h \W]\$ ' TERM=xterm # PuTTY emulates this. TMPDIR=~/tmp export CDPATH ENV HISTSIZE HISTFILESIZE LC_COLLATE LESS MAILCHECK MAILPATH export EDITOR MANPATH PAGER TMPDIR VISUAL FCEDIT if test "$HOSTNAME" = "YborStudent" then CVSROOT='/var/cvs-repos/cop2805' else CVSROOT=':ext:wpollock@YborStudent.hccfl.edu:/var/cvs-repos/cop2805' fi export CVS_RSH=ssh CVSROOT export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib # Check for email: if type -p frm >/dev/null then frm -s new -s unread -q echo elif type -p mailutil >/dev/null then mailutil check /var/spool/mail/$USER echo fi # Display a fortune cookie message and other information: fortune echo w echo