diff options
| -rw-r--r-- | conf.d/05browser.fish | 2 | ||||
| -rw-r--r-- | functions/www.fish | 6 | ||||
| -rw-r--r-- | functions/wwwsearch.fish | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/conf.d/05browser.fish b/conf.d/05browser.fish index 6f4eeb0..f83f978 100644 --- a/conf.d/05browser.fish +++ b/conf.d/05browser.fish @@ -31,8 +31,6 @@ if status is-interactive; and not fish_is_root_user end - alias webbrowser "$BROWSER" - # Console gopher browser to look for by order of preference set -f gbrowsers 'ncgopher' set -f found_gbrowser (find_prog $gbrowsers) diff --git a/functions/www.fish b/functions/www.fish index 0ae1e86..9fb4074 100644 --- a/functions/www.fish +++ b/functions/www.fish @@ -1,8 +1,10 @@ function www --description "Browse the WWW" if test -z $argv - webbrowser &>/dev/null + $BROWSER &>/dev/null & + disown return end - webbrowser $argv &>/dev/null + $BROWSER $argv &>/dev/null & + disown end diff --git a/functions/wwwsearch.fish b/functions/wwwsearch.fish index f07bbcc..531101b 100644 --- a/functions/wwwsearch.fish +++ b/functions/wwwsearch.fish @@ -1,8 +1,10 @@ function wwwsearch --description "Search on the WWW" if test -z $argv - webbrowser $WEBSEARCH &>/dev/null + $BROWSER $WEBSEARCH &>/dev/null & + disown return end - webbrowser "$WEBSEARCH/$argv" &>/dev/null + $BROWSER "$WEBSEARCH/$argv" &>/dev/null & + disown end |
