Skip to content

Commit 82c4c41

Browse files
committed
feat: add process name fallback for wezterm tab titles
1 parent 151e80b commit 82c4c41

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

home/.config/wezterm/appearance.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ function M.apply(config)
9292
if not title or #title == 0 then
9393
title = tab.active_pane.title
9494
end
95+
if not title or #title == 0 then
96+
local name = tab.active_pane.foreground_process_name or ''
97+
title = name:match('([^/]+)$') or '?'
98+
end
9599

96100
local max_chars = 12
97101
local char_len = utf8.len(title) or 0

0 commit comments

Comments
 (0)