|
|
|
|
76
|
|
76
|
|
77
|
# Prompt
|
77
|
# Prompt
|
78
|
function parse_git_dirty {
|
78
|
function parse_git_dirty {
|
79
|
- [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working tree clean" ]] && echo "*"
|
|
|
|
|
79
|
+ [[ $(git status 2> /dev/null | tail -n1) != "rien à valider, la copie de travail est propre" ]] && echo "*"
|
80
|
}
|
80
|
}
|
81
|
function parse_git_branch {
|
81
|
function parse_git_branch {
|
82
|
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\(\1$(parse_git_dirty)\)/"
|
82
|
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\(\1$(parse_git_dirty)\)/"
|