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
3cb33fc2
Commit
3cb33fc2
authored
Jul 25, 2011
by
Andrew Smith
Browse files
Replace a duplicated test to see if we're in an SVN folder with a call to the 'in_svn' function.
parent
3350c229
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/svn/svn.plugin.zsh
View file @
3cb33fc2
function
svn_prompt_info
{
if
[
[
-d
.
svn
]
]
;
then
if
[
in_
svn
]
;
then
echo
"
$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_PREFIX
\
$ZSH_THEME_REPO_NAME_COLOR
$(
svn_get_repo_name
)
$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_SUFFIX$ZSH_PROMPT_BASE_COLOR
$(
svn_dirty
)
$ZSH_PROMPT_BASE_COLOR
"
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