Fix starship not getting the correct pwd (#1822)

This commit is contained in:
Jonathan Turner
2020-05-17 22:22:54 -07:00
committed by GitHub
parent 6ec6eb5199
commit c475be2df8
2 changed files with 2 additions and 0 deletions

View File

@ -648,6 +648,7 @@ impl Shell for FilesystemShell {
let path = match canonicalize(self.path(), pathbuf.as_path()) {
Ok(path) => {
let _ = std::env::set_current_dir(&path);
std::env::set_var("PWD", &path);
path
}
_ => {