mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 09:15:24 +02:00
[bash] cosmetic change in __colorized_exit_status
This commit is contained in:
parent
d84b23e590
commit
c08a3c6a48
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ fi
|
|||
# Exit status 130 is also considered as good as it corresponds to a CTRL-D
|
||||
__colorized_exit_status() {
|
||||
printf -- "\$(status=\$? ; if [[ \$status = 0 || \$status = 130 ]]; then \
|
||||
echo -e '\[\e[01;32m\]'\$status; \
|
||||
else \
|
||||
echo -e '\[\e[01;32m\]'\$status; \
|
||||
else \
|
||||
echo -e '\[\e[01;31m\]'\$status; fi)"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue