From 1bd01ccd0f471666c80e05a26b1c275884686d08 Mon Sep 17 00:00:00 2001 From: Andreas Brenk Date: Thu, 23 May 2019 17:04:09 +0200 Subject: Use $BROWSER if "xdg-open" and "open" are not present --- fzf-url.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fzf-url.sh b/fzf-url.sh index 37ad3c3..cf3f33b 100755 --- a/fzf-url.sh +++ b/fzf-url.sh @@ -13,6 +13,8 @@ if hash xdg-open &>/dev/null; then open_cmd='nohup xdg-open' elif hash open &>/dev/null; then open_cmd='open' +elif [[ -v BROWSER ]]; then + open_cmd="$BROWSER" fi content="$(tmux capture-pane -J -p)" -- cgit v1.2.3