aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2024-02-20 12:30:06 +0100
committervg <vgm+dev@devys.org>2024-02-20 12:30:06 +0100
commitb2d63addc5322267e3f85f2c01411fd68c498081 (patch)
treedb0cdebc21988c7ad38de732938d908777cad170
parent638b8cf04e90398673f719f8fc1323771ad750de (diff)
downloadfork-tmux-fzf-url-master.tar.gz
fork-tmux-fzf-url-master.tar.bz2
fork-tmux-fzf-url-master.zip
if /home/calendros/bin/tmux-browser-split is defined use it firstHEADmaster
-rwxr-xr-xfzf-url.sh6
1 files 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
}