# .bashrc configure_ecearth() { if [ `hostname` != "frontal1" ]; then echo "First, we move to frontal1..." touch .configure_ecearth ssh frontal1 fi export EC_DEP=/projects/acad/ecearth/opt if [ -f $EC_DEP/modules ]; then source $EC_DEP/modules fi } if [ `hostname` = "frontal3" ]; then echo "Nothing to load..." fi if [ `hostname` = "frontal1" ]; then [[ -f .configure_ecearth ]] && configure_ecearth [[ -f .configure_ecearth ]] && rm .configure_ecearth fi