# -*- sh -*- # Do not warn about old skel dot-files anymore GRML_WARN_SKEL=0 if which acpi > /dev/null; then __tmp_acpi="`acpi 2>&1`" if [ "$__tmp_acpi" = "" -o \ "$__tmp_acpi" = "No support for device type: battery" \ -o "$HOST" = loadrunner ]; then BATTERY=0 elif [ -n "$MC_SID" ]; then BATTERY=0 else BATTERY=1 fi else BATTERY=0 fi EDITORS=( emacs zile # emacs and good clones nvi elvis-tiny vim vi # vi and clones jove jemacs mg qemacs vile # emacs and less preferred clones nano pico # pico and clones joe jupp # joe and clones elvis # less preferred vi clones editor edit # Generic editors ) for ed in $EDITORS; do if which "$ed" > /dev/null; then export EDITOR="$ed" break fi done if which emacsclient > /dev/null; then export EDITOR="emacsclient -a $EDITOR" fi TEXTBROWSERS=(lynx links2 links elinks w3m) XBROWSERS=( conkeror # The can be only one ;-) arora midori # Preferred WebKit browsers netsurf opera xlinks2 # Common alternative browsers iceweasel firefox abrowser # Firefox bloat and clones iceape seamonkey # Conservative bloat and clones chromium-browser # At least it's open source vimprobable # vi keybindings, meh. chimera2 # New dinosaur google-chrome # The Evil Browser™ (if we don't count MSIE) ) # Check which browsers are installed and use the most preferred one for tb in $TEXTBROWSERS; do if which "$tb" > /dev/null; then export ABROWSER="$tb" break fi done BROWSER="" if [ -z "$DISPLAY" ]; then export BROWSER="$ABROWSER" else for xb in $XBROWSERS; do if which "$xb" > /dev/null; then export BROWSER="$xb" break fi done if [ -z "$BROWSER" ]; then export BROWSER="$ABROWSER" fi fi