mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-21 11:51:57 +00:00
parent
14978859c5
commit
5bf7f9c833
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,13 @@ function open_command() {
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
${=open_cmd} "$@" &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue