HOME=/home/${USER:-${LOGNAME}} exist_run() { if test ! -f "$2" then echo "* $2 is not a file, not sourced/ENV exported" return 1 fi case $1 in source|run) . "$2" return 0 ;; env*|ENV*) ENV="$2" ; export ENV return 0 ;; *) echo '* please pass "source" or "env" as the 1st arg' return 1 ;; esac } exist_run source ${HOME}/cf/sh/env.cf exist_run source ${HOME}/.bashrc exist_run source ${HOME}/bin/init-run