... | ... |
@@ -58,7 +58,7 @@ 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 () { |
... | ... |
@@ -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)" |
|
79 | 79 |
if [[ "$TERM" != "screen" ]]; then |
80 | 80 |
__PROMPT__+="\e[1;33m$HOST\e[0m:" |
81 | 81 |
fi |