# force sane editor editor="nano vim emacsclient" for b in $editor ; do if hash $b > /dev/null 2>&1 ; then export EDITOR="$(which $b)" break fi done # set timezone if needed [[ -z "$TZ" ]] && export TZ=Europe/Berlin