cirho / powerline-rust

powerline-shell written in Rust
MIT License
51 stars 25 forks source link

Add exit_code module #16

Closed inamiy closed 4 years ago

inamiy commented 4 years ago

This PR adds exit_code module that explicitly shows previous exit status value.

BTW I first thought this module was also missing from original powerline, but later noticed cmd can also show alert color, so maybe this PR might not be so interesting. (I will send PR anyway)

inamiy commented 4 years ago

@cirho After some experiments, I preferred having exit_code explicitly as this PR proposed. In my use case, I instead hide cmd to remove | $ > to save some space while exit_code is 0.

So, it would be great if you can consider merging this PR!