anki-code / xontrib-prompt-starship

Starship cross-shell prompt in xonsh shell.
MIT License
51 stars 8 forks source link

Temporary fix for a starship bug not accepting negative return values #10

Closed eugenesvk closed 1 year ago

eugenesvk commented 1 year ago

I've been bugged a lot by weird starship error messages when I abort some commands, then finally found out that for some reason starthip can't accept negative values as return status numbers I've filed a bug upstream https://github.com/starship/starship/issues/4980, but in the meantime am using this commit to always return positive command return status values

anki-code commented 1 year ago

I commented the cause in upstream issue and made changes. Good catch thanks!