feat(wezterm): subtitue home path with ~ in statusbar

This commit is contained in:
Price Hiller 2023-08-31 22:14:59 -05:00
parent d77258f849
commit 502dab0e96
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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