1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 17:25:23 +02:00

[bash] cosmetic change in __colorized_exit_status

This commit is contained in:
Hyacinthe Cartiaux 2015-06-30 16:10:36 +02:00
parent d84b23e590
commit c08a3c6a48

View file

@ -180,8 +180,8 @@ fi
# Exit status 130 is also considered as good as it corresponds to a CTRL-D # Exit status 130 is also considered as good as it corresponds to a CTRL-D
__colorized_exit_status() { __colorized_exit_status() {
printf -- "\$(status=\$? ; if [[ \$status = 0 || \$status = 130 ]]; then \ printf -- "\$(status=\$? ; if [[ \$status = 0 || \$status = 130 ]]; then \
echo -e '\[\e[01;32m\]'\$status; \ echo -e '\[\e[01;32m\]'\$status; \
else \ else \
echo -e '\[\e[01;31m\]'\$status; fi)" echo -e '\[\e[01;31m\]'\$status; fi)"
} }