Default to starting tab in home dir if current dir doesn't exist.
This commit is contained in:
1 parent
83641ed46c
commit
d789748c99
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user