mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Formatting.
This commit is contained in:
parent
e3e980a16d
commit
2bf33aedc7
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@
|
|||
function git_prompt_info() {
|
||||
[[ GIT_HIDE == 'true' ]] && return
|
||||
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
|
||||
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
|
||||
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
|
||||
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
||||
}
|
||||
|
||||
|
|
@ -118,7 +118,6 @@ git_stash_status() {
|
|||
has_stashed_commits && echo $ZSH_THEME_GIT_PROMPT_STASHED
|
||||
}
|
||||
|
||||
|
||||
# Get the status of the working tree
|
||||
git_prompt_status() {
|
||||
local key
|
||||
|
|
@ -176,6 +175,7 @@ check_git_show_status() {
|
|||
GIT_HIDE='true'
|
||||
fi
|
||||
}
|
||||
|
||||
#this is unlikely to change so make it all statically assigned
|
||||
check_git_show_status
|
||||
git_prompt_status_setup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue