From 807bc53c1fc5579f911ef4989fc8e997cbf4cdb5 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 18 Mar 2014 16:21:45 +0100 Subject: [PATCH] profile: Prettier code to set BROWSER Common browsers included. --- .profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index ed847b64..76b32ccd 100644 --- a/.profile +++ b/.profile @@ -118,8 +118,9 @@ export EDITOR export GIT_EDITOR ## Internet Browser -command -v luakit >/dev/null 2>&1 && export BROWSER="luakit" -command -v dwb >/dev/null 2>&1 && export BROWSER="dwb" +for i in dwb luakit google-chrome; do + command -v $i >/dev/null 2>&1 && export BROWSER=$i && break +done ## SSH-Agent ## WARNING: this is insecure on machines where someone else has root access.