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:
parent
83641ed46c
commit
d789748c99
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user