diff .bash_profile @ 61:d59d16a55494

* Added test to dotfile check which aborts if no keys loaded * Added .screenrc.pbstops for pbstop screen session * Aliases for cses13, 't cses13' and 'tops'
author huston@80426f53-59d1-405d-934b-f07cd76f4a1a
date Mon, 09 Jul 2012 16:57:42 +0000
parents f59f847377d7
children 1660b93d4220
line wrap: on
line diff
--- a/.bash_profile	Fri Jul 06 20:33:15 2012 +0000
+++ b/.bash_profile	Mon Jul 09 16:57:42 2012 +0000
@@ -44,8 +44,12 @@
       ;;
 
     *)
-      echo , running a status test.
-      svn st -u && touch $HOME/.dotfilets &
-      disown %+
+      if ssh-add -l > /dev/null 2>&1 ; then
+        echo , running a status test.
+        svn st -u && touch $HOME/.dotfilets &
+        disown %+
+      else
+        echo , but no keys loaded yet - add SSH keys and retrigger test.
+      fi
   esac
 }