mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Merge d80d393aba into c3b072eace
This commit is contained in:
commit
3a48a56cd6
1 changed files with 6 additions and 7 deletions
|
|
@ -64,17 +64,16 @@ bureau_git_status() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bureau_git_prompt () {
|
bureau_git_prompt () {
|
||||||
local _branch=$(bureau_git_branch)
|
if $(command git rev-parse --git-dir > /dev/null 2>&1); then
|
||||||
local _status=$(bureau_git_status)
|
local _branch=$(bureau_git_branch)
|
||||||
local _result=""
|
local _status=$(bureau_git_status)
|
||||||
if [[ "${_branch}x" != "x" ]]; then
|
local _result="$ZSH_THEME_GIT_PROMPT_PREFIX$_branch"
|
||||||
_result="$ZSH_THEME_GIT_PROMPT_PREFIX$_branch"
|
if [[ -n "$_status" ]]; then
|
||||||
if [[ "${_status}x" != "x" ]]; then
|
|
||||||
_result="$_result $_status"
|
_result="$_result $_status"
|
||||||
fi
|
fi
|
||||||
_result="$_result$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
_result="$_result$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
||||||
|
echo $_result
|
||||||
fi
|
fi
|
||||||
echo $_result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue