themes/agnoster: Fix "command not found" error caused by #118 (Fix #429)

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:
Mihir Patel
2023-04-05 13:58:02 +08:00
committed by Koichi Murase
parent 9b8173c984
commit aabc172d7a

View File

@@ -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)"