feat(wezterm): subtitue home path with ~
in statusbar
This commit is contained in:
parent
d77258f849
commit
502dab0e96
@ -72,6 +72,7 @@ wezterm.on("update-right-status", function(window, pane)
|
|||||||
-- a URL object here, making this simple!
|
-- a URL object here, making this simple!
|
||||||
---@diagnostic disable-next-line: undefined-field
|
---@diagnostic disable-next-line: undefined-field
|
||||||
cwd = cwd_uri.file_path
|
cwd = cwd_uri.file_path
|
||||||
|
cwd = cwd:gsub(wezterm.home_dir, "~")
|
||||||
---@diagnostic disable-next-line: undefined-field
|
---@diagnostic disable-next-line: undefined-field
|
||||||
hostname = cwd_uri.host or wezterm.hostname()
|
hostname = cwd_uri.host or wezterm.hostname()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user