zshrc: Stop setting $BROWSER
authorFrank Terbeck <ft@grml.org>
Fri, 18 Nov 2011 10:41:01 +0000 (11:41 +0100)
committerFrank Terbeck <ft@grml.org>
Fri, 18 Nov 2011 10:41:01 +0000 (11:41 +0100)
Requested-by: Ulrich Dangel <mru@grml.org>
Acked-by: Michael Prokop <mika@grml.org>
Signed-off-by: Frank Terbeck <ft@grml.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc

index 8b6e27f..f939765 100644 (file)
@@ -298,9 +298,6 @@ available via the usual history lookup widgets.
 //grmlzshrc// sets some environment variables, which influence the
 behaviour of applications.
 
-: **BROWSER**
-If X is running this is set to "firefox", otherwise to "w3m".
-
 : **COLORTERM**
 Set to "yes". Some applications read this to learn about properties
 of the terminal they are running in.
index 086a9a4..47ec759 100644 (file)
@@ -2481,17 +2481,6 @@ fi
 # set terminal property (used e.g. by msgid-chooser)
 export COLORTERM="yes"
 
-# set default browser
-if [[ -z "$BROWSER" ]] ; then
-    if [[ -n "$DISPLAY" ]] ; then
-        #v# If X11 is running
-        check_com -c firefox && export BROWSER=firefox
-    else
-        #v# If no X11 is running
-        check_com -c w3m && export BROWSER=w3m
-    fi
-fi
-
 #m# v QTDIR \kbd{/usr/share/qt[34]}\quad [for non-root only]
 [[ -d /usr/share/qt3 ]] && export QTDIR=/usr/share/qt3
 [[ -d /usr/share/qt4 ]] && export QTDIR=/usr/share/qt4