From c9176eab5756f56ffb2dafb89495b62902ff90ba Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 26 Jan 2025 06:39:37 +0100 Subject: Fix starting browser. modified: conf.d/05browser.fish modified: functions/www.fish modified: functions/wwwsearch.fish --- conf.d/05browser.fish | 2 -- functions/www.fish | 6 ++++-- 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 -- cgit v1.3.1