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:
parent
542f2decf8
commit
0c0ee84777
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue