summaryrefslogblamecommitdiffstats
path: root/bashrc/common/env.sh
blob: 2ddb235e73cbee8e686d9ed7e5c93ec7166abe7d (plain) (tree)
1
2
3
4
5
6
7
8
9
                   







                                      


                                         
# 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