diff options
-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 } |