diff options
author | vg <vgm+dev@devys.org> | 2024-02-20 12:30:06 +0100 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2024-02-20 12:30:06 +0100 |
commit | b2d63addc5322267e3f85f2c01411fd68c498081 (patch) | |
tree | db0cdebc21988c7ad38de732938d908777cad170 /fzf-url.sh | |
parent | 638b8cf04e90398673f719f8fc1323771ad750de (diff) | |
download | fork-tmux-fzf-url-b2d63addc5322267e3f85f2c01411fd68c498081.tar.gz fork-tmux-fzf-url-b2d63addc5322267e3f85f2c01411fd68c498081.tar.bz2 fork-tmux-fzf-url-b2d63addc5322267e3f85f2c01411fd68c498081.zip |
Diffstat (limited to 'fzf-url.sh')
-rwxr-xr-x | fzf-url.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |