diff options
author | Andreas Brenk <mail@andreasbrenk.com> | 2019-05-23 17:04:09 +0200 |
---|---|---|
committer | Andreas Brenk <mail@andreasbrenk.com> | 2019-05-23 17:04:09 +0200 |
commit | 1bd01ccd0f471666c80e05a26b1c275884686d08 (patch) | |
tree | 2e09873af8507a913a902dc38ca17524fc983693 /fzf-url.sh | |
parent | 26aadc67924381ba63db8530f4c1cb4fe3126cfb (diff) | |
download | fork-tmux-fzf-url-1bd01ccd0f471666c80e05a26b1c275884686d08.tar.gz fork-tmux-fzf-url-1bd01ccd0f471666c80e05a26b1c275884686d08.tar.bz2 fork-tmux-fzf-url-1bd01ccd0f471666c80e05a26b1c275884686d08.zip |
Use $BROWSER if "xdg-open" and "open" are not present
Diffstat (limited to 'fzf-url.sh')
-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)" |