starship/src/init
Shan Zhou 465e6fc4be
fix(pwsh): Use global:error[0] for most recent error in powershell (#3584)
* Use global:error[0] for most recent error

The current version use $error[0], which is for the module instead of the global status and is always $null, so the $lastExitCodeForPrompot is always $origLastExitCode (see https://github.com/starship/starship/issues/3485 for a related bug).
It should be replaced with $global:error[0] 
Comments are also updated

* fix(pwsh): make Semantic PR bot happy
2022-02-11 12:07:50 +01:00
..
mod.rs feat: add support for cmd (#3277) 2022-01-09 23:47:53 -06:00
starship.bash fix(bash): Restore previous exit status in bash init (#3521) 2022-01-30 10:52:51 +01:00
starship.elv fix(elvish): use `$pwd` for `logical-path` (#3534) 2022-01-28 21:48:10 +01:00
starship.fish fix(properties): fix regressions in `status`, `pipestatus` and `terminal-width` handling (#3399) 2022-01-15 04:21:38 -05:00
starship.ion feat: add error messaging (#1576) 2020-09-28 16:38:50 -04:00
starship.lua feat: add support for cmd (#3277) 2022-01-09 23:47:53 -06:00
starship.nu fix(nu): use correct session key variable name (#2874) 2021-07-10 12:14:42 +02:00
starship.ps1 fix(pwsh): Use global:error[0] for most recent error in powershell (#3584) 2022-02-11 12:07:50 +01:00
starship.tcsh feat: add support for tcsh (#2288) 2021-02-27 19:55:27 +01:00
starship.xsh feat(xonsh): support rprompt (#3362) 2021-12-31 08:23:01 +01:00
starship.zsh refactor(zsh): using add-zsh-hook instead of add hook manually (#3537) 2022-02-05 22:37:34 -08:00