0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

Strip colours from git.zsh

This commit is contained in:
Geoff Garside 2009-08-31 14:01:39 +01:00
parent 0f2e63f899
commit 5811a6b11f

View file

@ -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