mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
This is a regression by PR #118 on GitHub [1]. `git_status_dirty` and `git_stash_dirty` are functions and not external commands. [1] https://github.com/ohmybash/oh-my-bash/pull/118
This commit is contained in:
committed by
Koichi Murase
parent
9b8173c984
commit
aabc172d7a
@@ -341,8 +341,8 @@ function prompt_git {
|
||||
local ref dirty
|
||||
if command git rev-parse --is-inside-work-tree &>/dev/null; then
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY='±'
|
||||
dirty=$(command git_status_dirty)
|
||||
stash=$(command git_stash_dirty)
|
||||
dirty=$(git_status_dirty)
|
||||
stash=$(git_stash_dirty)
|
||||
ref=$(command git symbolic-ref HEAD 2> /dev/null) ||
|
||||
ref="➦ $(command git describe --exact-match --tags HEAD 2> /dev/null)" ||
|
||||
ref="➦ $(command git show-ref --head -s --abbrev | head -n1 2> /dev/null)"
|
||||
|
Reference in New Issue
Block a user