function cd { builtin cd $1 if [ -e .svn ] then DIFFS=`svn status| egrep "^M"` if [ -z "$DIFFS" ] then exit else echo "This directory contains uncommited changes." fi fi }