... | ... |
@@ -76,7 +76,7 @@ precmd () { |
76 | 76 |
__PROMPT__+="\e[1;34m$nbrj\e[0;34m job en cours\n" |
77 | 77 |
fi |
78 | 78 |
__PROMPT__+="$(git_prompt_string)" |
79 |
- if [[ "$TERM" != "screen" ]]; then |
|
79 |
+ if [[ $SHLVL == 1 ]]; then |
|
80 | 80 |
__PROMPT__+="\e[1;33m$HOST\e[0m:" |
81 | 81 |
fi |
82 | 82 |
__PROMPT__+="\e[0;32m$([[ $UID == 0 ]] && echo '\e[47m\e[4;31m /!\ root /!\ \e[0m\e[0;31m ')" |