|
@@ -10,14 +10,11 @@
|
10
|
10
|
|
11
|
11
|
__make_ps1d() {
|
12
|
12
|
lastrv=$(cat /var/tmp/bash-rv/$$.lastrv)
|
13
|
|
- if [ $lastrv -gt 126 ];
|
|
13
|
+ if [ $lastrv -gt 0 ];
|
14
|
14
|
then
|
15
|
|
- echo "[0;31m \$"
|
16
|
|
- elif [ $lastrv -gt 0 ];
|
17
|
|
- then
|
18
|
|
- echo "[1;31m \$"
|
|
15
|
+ echo "$lastrv"
|
19
|
16
|
else
|
20
|
|
- echo "[1;0m \$"
|
|
17
|
+ echo ""
|
21
|
18
|
fi
|
22
|
19
|
}
|
23
|
20
|
|
|
@@ -35,8 +32,8 @@ make_ps1() {
|
35
|
32
|
ps1G='$(__git_ps1 "(%s)")';
|
36
|
33
|
ps1g="$green$ps1G$normal";
|
37
|
34
|
ps1D='$(__make_ps1d $?)';
|
38
|
|
- ps1d="$ps1D";
|
39
|
|
- echo "$svrc$ps1u@$ps1h:$ps1w$ps1g$ps1d$normal ";
|
|
35
|
+ ps1d="$red$ps1D$normal";
|
|
36
|
+ echo "$svrc$ps1u@$ps1h:$ps1w$ps1g$ps1d\$ ";
|
40
|
37
|
}
|
41
|
38
|
|
42
|
39
|
make_ps2() {
|