Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
5811a6b1
Commit
5811a6b1
authored
Aug 31, 2009
by
Geoff Garside
Browse files
Strip colours from git.zsh
parent
0f2e63f8
Changes
1
Show whitespace changes
Inline
Side-by-side
git.zsh
View file @
5811a6b1
...
@@ -4,7 +4,7 @@ function git_prompt_info() {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment