aboutsummaryrefslogtreecommitdiffstats
path: root/fzf-url.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fzf-url.sh')
-rwxr-xr-xfzf-url.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/fzf-url.sh b/fzf-url.sh
index fa49f9d..b15841f 100755
--- a/fzf-url.sh
+++ b/fzf-url.sh
@@ -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
}