Compare commits
No commits in common. "7b27e66ae683b2b1199b3f597419c354e88a6e47" and "f92d4b5852dafa6d13d54f255542c39c3490466d" have entirely different histories.
7b27e66ae6
...
f92d4b5852
|
@ -191,7 +191,7 @@ in
|
||||||
disable_splash_rendering = true;
|
disable_splash_rendering = true;
|
||||||
focus_on_activate = true;
|
focus_on_activate = true;
|
||||||
enable_swallow = true;
|
enable_swallow = true;
|
||||||
swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm|foot|neovide)$";
|
swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm|foot)$";
|
||||||
};
|
};
|
||||||
|
|
||||||
animations = {
|
animations = {
|
||||||
|
|
|
@ -32,10 +32,7 @@ local process_icons = {
|
||||||
}
|
}
|
||||||
|
|
||||||
local function get_current_working_dir(tab)
|
local function get_current_working_dir(tab)
|
||||||
local current_dir = tab.active_pane
|
local current_dir = tab.active_pane and tab.active_pane.current_working_dir() or { file_path = '' }
|
||||||
and tab.active_pane.current_working_dir
|
|
||||||
and tab.active_pane.current_working_dir()
|
|
||||||
or { file_path = '' }
|
|
||||||
local HOME_DIR = os.getenv('HOME')
|
local HOME_DIR = os.getenv('HOME')
|
||||||
|
|
||||||
return current_dir.file_path == HOME_DIR and '~' or string.gsub(current_dir.file_path, '(.*[/\\])(.*)', '%2')
|
return current_dir.file_path == HOME_DIR and '~' or string.gsub(current_dir.file_path, '(.*[/\\])(.*)', '%2')
|
||||||
|
|
Loading…
Reference in a new issue