diff options
-rw-r--r-- | bashrc/common/browser.sh | 13 | ||||
-rw-r--r-- | bashrc/main.sh | 3 |
2 files changed, 16 insertions, 0 deletions
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 |