connected domain in tab bar on wezterm

This commit is contained in:
Anton Volnuhin 2024-05-21 01:18:33 +03:00
parent 264c7cd7a7
commit 04d978e058

View File

@ -220,5 +220,19 @@ wezterm.on(
end
)
wezterm.on('update-right-status', function(window, pane)
local domain = pane:get_domain_name()
if (domain == "local") then
domain = ""
end
-- Make it italic and underlined
window:set_right_status(wezterm.format {
{ Attribute = { Underline = 'None' } },
{ Attribute = { Italic = false } },
{ Text = domain },
})
end)
-- and finally, return the configuration to wezterm
return config