Back to Wezterm

wezterm.open_with

docs/config/lua/wezterm/open_with.md

latest427 B
Original Source

wezterm.open_with(path_or_url [, application])

{{since('20220101-133340-7edc5b5a')}}

This function opens the specified path_or_url with either the specified application or uses the default application if application was not passed in.

lua
-- Opens a URL in your default browser
wezterm.open_with 'http://example.com'

-- Opens a URL specifically in firefox
wezterm.open_with('http://example.com', 'firefox')