if status is-interactive; and not fish_is_root_user if test -z "$HOMEPAGE" set -x HOMEPAGE "https://html.duckduckgo.com" end # Console browser to look for by order of preference set -f browsers 'links' 'w3m' 'elinks' 'lynx' # Find a suitable console web browser set -f found_browser (find_prog $browsers) if test -n "$found_browser" # If $BROWSER is unset, set it if test -z "$BROWSER" set -x BROWSER $found_browser end function www --description "Browse the WWW" if test -z $argv $BROWSER $HOMEPAGE return end $BROWSER $argv end end end