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

This commit is contained in:
Jeremy Fitzhardinge authored and Wez Furlong committed 2020-01-11 18:25:17 -08:00
1 parent 83641ed46c
commit d789748c99
1 file changed
+1
+1
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