From d29929d012f50a96336d6a4e2dce07c870a7ee2c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 31 Oct 2008 00:02:27 +0100 Subject: =?UTF-8?q?browser=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bashrc/common/browser.sh | 13 +++++++++++++ bashrc/main.sh | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 bashrc/common/browser.sh diff --git a/bashrc/common/browser.sh b/bashrc/common/browser.sh new file mode 100644 index 0000000..e01dd61 --- /dev/null +++ b/bashrc/common/browser.sh @@ -0,0 +1,13 @@ +# browser options + +# but user opera, if available +if hash opera > /dev/null 2>&1 ; then + export PAGER=opera +else + + # use firefox by default ... + if hash firefox > /dev/null 2&>1 ; then + export BROWSER=firefox + fi +fi + diff --git a/bashrc/main.sh b/bashrc/main.sh index 649641c..eb17f58 100644 --- a/bashrc/main.sh +++ b/bashrc/main.sh @@ -71,6 +71,9 @@ _load common alias # pager options _load common pager +# browser options +_load common browser + # color code definitions _load common color -- cgit v1.2.3