From b4db3947615756d0621a6248d7f98a7272a755f9 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Thu, 11 Apr 2019 14:54:47 +0200 Subject: [PATCH] Export BROWSER as well. --- dotfiles/env | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotfiles/env b/dotfiles/env index c9faf6a..5728691 100755 --- a/dotfiles/env +++ b/dotfiles/env @@ -29,6 +29,15 @@ if [ -z "${TERMINAL}" ] ; then done fi +# Browser preferences +if [ -z "${BROWSER}" ] ; then + for t in google-chrome-beta google-chrome firefox ; do + if BROWSER=$(command -v ${t}); then + export BROWSER + fi + done +fi + # For virtualenvwrapper export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'