diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index a02a6f8..f3ee042 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -128,6 +128,9 @@ local function get_process(tab) if string.find(process_name, "kubectl") then process_name = "kubectl" end + if string.find(process_name, "python3") then + process_name = "python3" + end return { Icon = process_icons[process_name] or string.format("[%s]", process_name), @@ -157,13 +160,14 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid local title if process then - local sub_title = cwd - if process_use_suggested_title[process.Process] then - sub_title = get_suggested_tab_title(tab) - end - local icon = process.Icon or string.format("[%s]", process.Process) - title = string.format(" %s (%s) ", icon, sub_title) + if process_use_suggested_title[process.Process] then + title = string.format(" %s %s ", icon, get_suggested_tab_title(tab)) + else + title = string.format(" %s (%s) ", icon, cwd) + end + else + title = string.format(" %s %s ", wezterm.nerdfonts.cod_terminal_bash, get_suggested_tab_title(tab)) end if has_unseen_output then