diff --git a/private_dot_config/wezterm/wezterm.lua b/private_dot_config/wezterm/wezterm.lua index 46cc79e..30d124d 100644 --- a/private_dot_config/wezterm/wezterm.lua +++ b/private_dot_config/wezterm/wezterm.lua @@ -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