petobens / trueline

Fast and extensible bash powerline prompt with true color and fancy icon support
MIT License
385 stars 36 forks source link

Support symbol for exit status #30

Closed LiteracyFanatic closed 3 years ago

LiteracyFanatic commented 3 years ago

It'd be great if it was possible to add a symbol for the exit status. Pureline sets it to U+2691 : BLACK FLAG by default.

petobens commented 3 years ago

Implemented. It is empty by default so if you want to actually add the symbol you need to add something like the following to your config:

declare -A TRUELINE_SYMBOLS=([exit_status]=' ⚑')
LiteracyFanatic commented 3 years ago

Thanks!