aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDeposite Pirate2025-01-26 06:39:37 +0100
committerDeposite Pirate2025-01-26 06:39:37 +0100
commitc9176eab5756f56ffb2dafb89495b62902ff90ba (patch)
tree61ddda39c2709fa7628d8ea5766ca86f4dc6405c /functions
parent7eccc43affd86423c649c7ffd66ab0b21d429f8a (diff)
Fix starting browser.
modified: conf.d/05browser.fish modified: functions/www.fish modified: functions/wwwsearch.fish
Diffstat (limited to 'functions')
-rw-r--r--functions/www.fish6
-rw-r--r--functions/wwwsearch.fish6
2 files changed, 8 insertions, 4 deletions
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