connected domain in tab bar on wezterm
This commit is contained in:
parent
264c7cd7a7
commit
04d978e058
@ -220,5 +220,19 @@ wezterm.on(
|
|||||||
end
|
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
|
-- and finally, return the configuration to wezterm
|
||||||
return config
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user