Mercurial > index.cgi > dotfiles
diff .bash_profile @ 30:ca6c77fe843b
* Whitespace (ugh)
* Test for presence of directories before adding them to paths
* Update Intel compilers to 11.0
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Mon, 01 Feb 2010 19:33:19 +0000 |
parents | a6c93cf45e90 |
children | f59f847377d7 |
line wrap: on
line diff
--- a/.bash_profile Fri Jan 22 18:38:23 2010 +0000 +++ b/.bash_profile Mon Feb 01 19:33:19 2010 +0000 @@ -6,7 +6,7 @@ # Get the aliases and functions if [ -f ~/.bashrc ]; then - . ~/.bashrc + . ~/.bashrc fi # User specific environment and startup programs @@ -23,7 +23,7 @@ # though I personally don't use/need it anymore. #if [ "X$SSH_AUTH_SOCK" = "X" ] ; then -# eval `/usr/bin/ssh-agent` +# eval `/usr/bin/ssh-agent` #fi # This part is quite useful if you have your dotfiles stored in subversion @@ -39,54 +39,55 @@ # won't be prompted if there's newer files available in your repository. case `uname` in - Darwin) - DFSTAT="stat -f %m -t %s $HOME/.dotfilets" - MDATE="date -v -1m +%s" - TDSTAT="stat -f %m -t %s $HOME/.todo" - HDATE="date -v -1h +%s" - ;; + Darwin) + DFSTAT="stat -f %m -t %s $HOME/.dotfilets" + MDATE="date -v -1m +%s" + TDSTAT="stat -f %m -t %s $HOME/.todo" + HDATE="date -v -1h +%s" + ;; - Linux) - DFSTAT="stat -c %Y $HOME/.dotfilets" - MDATE="date -d \"1 month ago\" +%s" - TDSTAT="stat -c %Y $HOME/.todo" - HDATE="date -d \"1 hour ago\" +%s" - ;; + Linux) + DFSTAT="stat -c %Y $HOME/.dotfilets" + MDATE="date -d \"1 month ago\" +%s" + TDSTAT="stat -c %Y $HOME/.todo" + HDATE="date -d \"1 hour ago\" +%s" + ;; esac [[ ! -f $HOME/.dotfilets || \ - `eval $DFSTAT` -lt `eval $MDATE` ]] && { - echo -n Dotfiles last checked over a month ago + `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 & - esac + # 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 & + esac } # Work in progress - toodledo to ~/.todo #[[ -f $HOME/.todo ]] && cat $HOME/.todo # #case `hostname -s` in -# xanadu|rapture) -# TOODLEDO_CMD="hotlist" -# ;; -# -# milton) -# TOODLEDO_CMD="tasks *Personal" -# ;; +# xanadu|rapture) +# TOODLEDO_CMD="hotlist" +# ;; + +# milton) +# TOODLEDO_CMD="tasks *Personal" +# ;; #esac # #[[ ! -f $HOME/.todo || \ -# `eval $TDSTAT` -lt `eval $HDATE` ]] && { -# echo "To-do list as of `date`" > $HOME/.todo -# echo "---------------------------------------------" >> $HOME/.todo -# toodledo tasks >> $HOME/.todo & +# `eval $TDSTAT` -lt `eval $HDATE` ]] && { +# echo "To-do list as of `date`" > $HOME/.todo +# echo "---------------------------------------------" >> $HOME/.todo +# toodledo tasks >> $HOME/.todo & #}