Merge pull request #430 from mihir3445/master

The `agnoster` theme out of the box reports "command not found"
This commit is contained in:
Koichi Murase
2023-04-05 01:56:45 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

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

View File

@@ -33,7 +33,7 @@ function doubletime_scm_prompt {
if [ $CHAR = $SCM_NONE_CHAR ]; then
return
elif [ $CHAR = $SCM_GIT_CHAR ]; then
echo "$(command git_prompt_status)"
echo "$(git_prompt_status)"
else
echo "[$(scm_prompt_info)]"
fi