aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenxuan <wenxuangm@gmail.com>2019-05-24 10:08:40 +0800
committerGitHub <noreply@github.com>2019-05-24 10:08:40 +0800
commitc20c9b9b160cdb2bfd096031abc8c5e73a99f392 (patch)
tree2e09873af8507a913a902dc38ca17524fc983693
parent26aadc67924381ba63db8530f4c1cb4fe3126cfb (diff)
parent1bd01ccd0f471666c80e05a26b1c275884686d08 (diff)
downloadfork-tmux-fzf-url-c20c9b9b160cdb2bfd096031abc8c5e73a99f392.tar.gz
fork-tmux-fzf-url-c20c9b9b160cdb2bfd096031abc8c5e73a99f392.tar.bz2
fork-tmux-fzf-url-c20c9b9b160cdb2bfd096031abc8c5e73a99f392.zip
Merge pull request #2 from abrenk/env-browser
Use $BROWSER if "xdg-open" and "open" are not present
-rwxr-xr-xfzf-url.sh2
1 files changed, 2 insertions, 0 deletions
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)"