diff options
author | Wenxuan <wenxuangm@gmail.com> | 2019-05-24 10:08:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 10:08:40 +0800 |
commit | c20c9b9b160cdb2bfd096031abc8c5e73a99f392 (patch) | |
tree | 2e09873af8507a913a902dc38ca17524fc983693 | |
parent | 26aadc67924381ba63db8530f4c1cb4fe3126cfb (diff) | |
parent | 1bd01ccd0f471666c80e05a26b1c275884686d08 (diff) | |
download | fork-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-x | fzf-url.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)" |