aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeposite Pirate2025-01-26 06:39:37 +0100
committerDeposite Pirate2025-01-26 06:39:37 +0100
commitc9176eab5756f56ffb2dafb89495b62902ff90ba (patch)
tree61ddda39c2709fa7628d8ea5766ca86f4dc6405c
parent7eccc43affd86423c649c7ffd66ab0b21d429f8a (diff)
Fix starting browser.
modified: conf.d/05browser.fish modified: functions/www.fish modified: functions/wwwsearch.fish
-rw-r--r--conf.d/05browser.fish2
-rw-r--r--functions/www.fish6
-rw-r--r--functions/wwwsearch.fish6
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