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
fa85b4d6
Commit
fa85b4d6
authored
Oct 02, 2013
by
Profpatsch
Browse files
More expressive symbols for git and mercurial.
parent
61e3951e
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/agnoster.zsh-theme
View file @
fa85b4d6
...
@@ -90,7 +90,7 @@ prompt_git() {
...
@@ -90,7 +90,7 @@ prompt_git() {
zstyle
':vcs_info:*'
formats
' %u%c'
zstyle
':vcs_info:*'
formats
' %u%c'
zstyle
':vcs_info:*'
actionformats
'%u%c'
zstyle
':vcs_info:*'
actionformats
'%u%c'
vcs_info
vcs_info
echo
-n
"
${
ref
/refs\/heads\//
}${
vcs_info_msg_0_
}
"
echo
-n
"
${
ref
/refs\/heads\//
±
}${
vcs_info_msg_0_
}
"
fi
fi
}
}
...
@@ -110,7 +110,7 @@ prompt_hg() {
...
@@ -110,7 +110,7 @@ prompt_hg() {
# if working copy is clean
# if working copy is clean
prompt_segment green black
prompt_segment green black
fi
fi
echo
-n
$(
hg prompt
"
{rev}@{branch}"
)
$st
echo
-n
$(
hg prompt
"
☿
{rev}@{branch}"
)
$st
else
else
st
=
""
st
=
""
rev
=
$(
hg
id
-n
2>/dev/null |
sed
's/[^-0-9]//g'
)
rev
=
$(
hg
id
-n
2>/dev/null |
sed
's/[^-0-9]//g'
)
...
...
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