2015-12-18 09:45:36 -05:00
|
|
|
# slightly modified git_prompt_info from oh-my-zsh for theme compatibility
|
|
|
|
|
|
|
|
local ref
|
|
|
|
if [[ ${zgit_hide_prompt} != 'true' ]]; then
|
|
|
|
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
|
|
|
|
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
|
2015-12-19 09:48:29 -05:00
|
|
|
print "${ZSH_THEME_GIT_PROMPT_PREFIX}${ref#refs/heads/}$(parse_git_dirty)${ZSH_THEME_GIT_PROMPT_SUFFIX}"
|
2015-12-18 09:45:36 -05:00
|
|
|
fi
|