|
|
@ -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="%{$fg[red]%}git:(%{$fg[green]${branch}%{$fg[red])"
|
|
|
|
CURRENT_BRANCH="(${branch})"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
CURRENT_BRANCH=''
|
|
|
|
CURRENT_BRANCH=''
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|