Unverified Commit 5bf7f9c8 authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub

fix(lib): use `$BROWSER` in `open_command` if set (#11532)

Fixes #11098
parent 14978859
......@@ -30,6 +30,13 @@ function open_command() {
;;
esac
# If a URL is passed, $BROWSER might be set to a local browser within SSH.
# See https://github.com/ohmyzsh/ohmyzsh/issues/11098
if [[ -n "$BROWSER" && "$1" = (http|https)://* ]]; then
"$BROWSER" "$@"
return
fi
${=open_cmd} "$@" &>/dev/null
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment