Closed eugenesvk closed 3 years ago
I'd like to have a red $ prompt symbol when the last operation status was an interruption/error (e.g. $? is False), this PR allows me to do that:
$
$?
False
Red
Green
$saved_lastoperationstatus=$?
Cool, thanks
I'd like to have a red
$
prompt symbol when the last operation status was an interruption/error (e.g.$?
isFalse
), this PR allows me to do that:Red
orGreen
(depending on the last op status) in the theme fg color field$saved_lastoperationstatus=$?
variable in your prompt function to allo using this status in the function above