Showing 1 changed files with 3 additions and 3 deletions
+3 -3
.zsh/prompt
... ...
@@ -58,13 +58,13 @@ parse_git_state() {
58 58
 # If inside a Git repository, print its branch and state
59 59
 git_prompt_string() {
60 60
     local git_where="$(parse_git_branch)"
61
-    [ -n "$git_where" ] && echo "$(parse_git_state)$GIT_PROMPT_PREFIX$fg[yellow]${git_where#(refs/heads/|tags/)}$GIT_PROMPT_SUFFIX "
61
+    [ -n "$git_where" ] && echo "$(parse_git_state)$GIT_PROMPT_PREFIX$fg[yellow]${git_where#(refs/heads/|tags/)}$GIT_PROMPT_SUFFIX"
62 62
 }
63 63
 
64 64
 precmd () {
65 65
     local test_code_de_sortie=$?;
66 66
     if [ $__LINENO__ -gt 0 ]; then
67
-        __PROMPT__='[ '
67
+        local __PROMPT__='[ '
68 68
         [[ $test_code_de_sortie != 0 ]] && __PROMPT__+="\e[41m\e[1;39m $test_code_de_sortie \e[0m "
69 69
         __PROMPT__+="\e[0;33m$(date '+%H:%M %x')\e[0m ]\n\n"
70 70
     fi
... ...
@@ -75,7 +75,7 @@ precmd () {
75 75
     elif [ $nbrj -gt 0 ]; then 
76 76
         __PROMPT__+="\e[1;34m$nbrj\e[0;34m job en cours\n"
77 77
     fi
78
-    __PROMPT__+=$(git_prompt_string)
78
+    __PROMPT__+="$(git_prompt_string) \e[1;33m$HOST\e[0m:"
79 79
     __PROMPT__+="\e[0;32m$([[ $UID == 0 ]] && echo '\e[47m\e[4;31m /!\ root /!\ \e[0m\e[0;31m ')"
80 80
     __PROMPT__+="$(pwd)\e[0m"
81 81
     echo -e "$__PROMPT__"