mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
Colour branch name and add dirty string
This commit is contained in:
parent
a9c1830462
commit
652caa6b25
1 changed files with 1 additions and 1 deletions
2
git.zsh
2
git.zsh
|
@ -4,7 +4,7 @@ function git_prompt_info() {
|
||||||
branch=${ref#refs/heads/}
|
branch=${ref#refs/heads/}
|
||||||
|
|
||||||
if [[ -d .git ]]; then
|
if [[ -d .git ]]; then
|
||||||
CURRENT_BRANCH="(${branch})"
|
CURRENT_BRANCH="(%{$fg[red]%}${branch}%{$reset_color%}) $(parse_git_dirty) "
|
||||||
else
|
else
|
||||||
CURRENT_BRANCH=''
|
CURRENT_BRANCH=''
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue