mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Making sha variable private.
This commit is contained in:
parent
2bf33aedc7
commit
2c9af0c7d5
1 changed files with 3 additions and 2 deletions
|
|
@ -73,8 +73,9 @@ git_is_clean() {
|
||||||
|
|
||||||
# Shows the long git sha, pass in --short to get it shortened
|
# Shows the long git sha, pass in --short to get it shortened
|
||||||
git_prompt_sha() {
|
git_prompt_sha() {
|
||||||
SHA=$(command git rev-parse $1 HEAD 2> /dev/null) && \
|
local sha
|
||||||
echo "$ZSH_THEME_GIT_PROMPT_SHA_BEFORE$SHA$ZSH_THEME_GIT_PROMPT_SHA_AFTER"
|
sha=$(command git rev-parse $1 HEAD 2> /dev/null) && \
|
||||||
|
echo "$ZSH_THEME_GIT_PROMPT_SHA_BEFORE$sha$ZSH_THEME_GIT_PROMPT_SHA_AFTER"
|
||||||
}
|
}
|
||||||
|
|
||||||
# The following are kept for backwards compatibility
|
# The following are kept for backwards compatibility
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue