From 502dab0e9605a8b1d54d07713de782a39c18515d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 31 Aug 2023 22:14:59 -0500 Subject: [PATCH] feat(wezterm): subtitue home path with `~` in statusbar --- dots/.config/wezterm/config/tabbar.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/dots/.config/wezterm/config/tabbar.lua b/dots/.config/wezterm/config/tabbar.lua index a6df4dc7..a0037170 100644 --- a/dots/.config/wezterm/config/tabbar.lua +++ b/dots/.config/wezterm/config/tabbar.lua @@ -72,6 +72,7 @@ wezterm.on("update-right-status", function(window, pane) -- a URL object here, making this simple! ---@diagnostic disable-next-line: undefined-field cwd = cwd_uri.file_path + cwd = cwd:gsub(wezterm.home_dir, "~") ---@diagnostic disable-next-line: undefined-field hostname = cwd_uri.host or wezterm.hostname() end