1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[bash] bashrc: fix the PS1

This commit is contained in:
Hyacinthe Cartiaux 2015-06-22 16:54:43 +02:00
parent 542f2decf8
commit 0c0ee84777

View file

@ -179,10 +179,10 @@ fi
# exit status of the last run command.
# 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 \
printf -- "$(status=\$? ; if [[ \$status = 0 || \$status = 130 ]]; then \
echo -e '\[\e[01;32m\]'\$status; \
else \
echo -e '\[\e[01;31m\]'\$status; fi\)"
echo -e '\[\e[01;31m\]'\$status; fi)"
}
# Simple (basic) prompt