From 04d978e058378cfd7e1e4daf58908ac38a52d18e Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Tue, 21 May 2024 01:18:33 +0300 Subject: [PATCH] connected domain in tab bar on wezterm --- private_dot_config/wezterm/wezterm.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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