## This file is executed on login.
##	It runs .bashrc, which is normally executed in non-login shells,
##	after making sure that it's actually running under bash

if [ x$0 = x-bash ]; then
    . $HOME/.bashrc
elif [ x`basename -- $0` = x'bash' ]; then
    . $HOME/.bashrc
fi

export PATH=$HOME/bin:$PATH

LC_COLLATE=C
LC_CTYPE=en_US.UTF-8
# LC_ALL overrides everything, so we mustn't set it.
LC_ALL=
export LC_COLLATE LC_CTYPE LC_ALL

[[ -x /usr/bin/X11/ctwm ]] && export XWINDOWMANAGER="ctwm -W -n -f $HOME/.ctwmrc.crc"

if [[ "$PS1" ]]; then

  ## The following display stuff before the first prompt:

  [[ -x /usr/games/fortune ]] && /usr/games/fortune
  uptime
  if [[ -x /usr/bin/frm ]]; then
      echo `date`, `frm | grep -v 'no mail.' | wc -l` messages total.
      frm-filter | grep -v -e 'free-\|svlug\|vsbig\|agenda\|[Aa]lsa\|overflow' 
  else
      date
  fi
fi

# Do any host-specific stuff here:

[[ -e ~/.profile-$HOSTNAME ]] && source ~/.profile-$HOSTNAME



