1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

Default to starting tab in home dir if current dir doesn't exist.

This commit is contained in:
Jeremy Fitzhardinge 2020-01-11 12:10:06 -08:00 committed by Wez Furlong
parent 83641ed46c
commit d789748c99

View File

@ -121,6 +121,7 @@ impl CommandBuilder {
.cwd
.as_ref()
.map(|dir| dir.as_os_str())
.filter(|dir| std::path::Path::new(dir).is_dir())
.unwrap_or(home.as_ref());
cmd.current_dir(dir);
cmd