diff --git a/themes/agnoster/agnoster.theme.sh b/themes/agnoster/agnoster.theme.sh index 7758b37..7999996 100644 --- a/themes/agnoster/agnoster.theme.sh +++ b/themes/agnoster/agnoster.theme.sh @@ -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)" diff --git a/themes/doubletime/doubletime.theme.sh b/themes/doubletime/doubletime.theme.sh index 2685169..fe8d843 100644 --- a/themes/doubletime/doubletime.theme.sh +++ b/themes/doubletime/doubletime.theme.sh @@ -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