From b2d63addc5322267e3f85f2c01411fd68c498081 Mon Sep 17 00:00:00 2001 From: vg Date: Tue, 20 Feb 2024 12:30:06 +0100 Subject: if /home/calendros/bin/tmux-browser-split is defined use it first --- fzf-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fzf-url.sh b/fzf-url.sh index fa49f9d..b15841f 100755 --- a/fzf-url.sh +++ b/fzf-url.sh @@ -18,12 +18,12 @@ fzf_filter() { open_url() { #set -x #echo "browser is $BROWSER" - if hash xdg-open &>/dev/null; then + if [[ -n $BROWSER ]]; then + nohup "$BROWSER" "$@" + elif hash xdg-open &>/dev/null; then nohup xdg-open "$@" elif hash open &>/dev/null; then nohup open "$@" - elif [[ -n $BROWSER ]]; then - nohup "$BROWSER" "$@" fi #set +x } -- cgit v1.2.3