diff --git a/src/init/starship.ps1 b/src/init/starship.ps1 index a450d600a..cab90cee5 100644 --- a/src/init/starship.ps1 +++ b/src/init/starship.ps1 @@ -10,9 +10,9 @@ function global:prompt { if ($lastCmd = Get-History -Count 1) { $duration = [math]::Round(($lastCmd.EndExecutionTime - $lastCmd.StartExecutionTime).TotalSeconds) # & ensures the path is interpreted as something to execute - $out = @(&::STARSHIP:: prompt --status=$lastexitcode --jobs=$jobs --cmd-duration=$duration) + $out = @(&::STARSHIP:: prompt "--path=$PWD" --status=$lastexitcode --jobs=$jobs --cmd-duration=$duration) } else { - $out = @(&::STARSHIP:: prompt --status=$lastexitcode --jobs=$jobs) + $out = @(&::STARSHIP:: prompt "--path=$PWD" --status=$lastexitcode --jobs=$jobs) } # Convert stdout (array of lines) to expected return type string