view .bash_profile @ 56:326071a2c195

* Added alias for starting vnc server (mostly for Xastir on Joshua)
author huston@80426f53-59d1-405d-934b-f07cd76f4a1a
date Sun, 19 Feb 2012 18:56:14 +0000
parents f59f847377d7
children d59d16a55494
line wrap: on
line source

# $Id$
#
# This file is sourced for interactive login shells, or
# non-interactive shells with the --login option.  So things which you
# want to happen only on login shells should go here.

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

# User specific environment and startup programs

# BASH_ENV is sourced for non-interactive shells; however, since we
# source ~/.bashrc above I don't think we have to here also.
# export BASH_ENV=$HOME/.bashrc

# These lines are helpful if you routinely might login without passing an
# ssh-agent's authentication through.  This way when you login, an agent is
# exec'd for you (the corresponding lines in .bash_logout should kill the
# agent when you logout, however they sometimes fail such as when killing your
# shell without a proper logout or closing the connection).  I left it here,
# though I personally don't use/need it anymore.

#if [ "X$SSH_AUTH_SOCK" = "X" ] ; then
#  eval `/usr/bin/ssh-agent`
#fi

# This part is quite useful if you have your dotfiles stored in subversion
# (though it could be edited fairly easily for any other version control
# system I'm sure).  We check the timestamp of the file '$HOME/.dotfilets'.
# If it's older than a month, run a 'svn st -u' and touch it; this way we
# check once per month to see if we forgot to pull down an updated version.

[[ ! -f $HOME/.dotfilets || \
  `eval $DFSTAT` -lt `eval $MDATE` ]] && {
  echo -n Dotfiles last checked over a month ago

  # Here we switch for hosts we don't want to check, just warn
  case `hostname -s` in
    bt)
      echo
      touch $HOME/.dotfilets
      ;;

    *)
      echo , running a status test.
      svn st -u && touch $HOME/.dotfilets &
      disown %+
  esac
}