Skip to content

Commit 1a475c4

Browse files
committed
Merge branch 'fc/untracked-zsh-prompt' into maint
* fc/untracked-zsh-prompt: prompt: fix untracked files for zsh
2 parents bd8e338 + 24b6132 commit 1a475c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-prompt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ __git_ps1 ()
340340
[ "$(git config --bool bash.showUntrackedFiles)" != "false" ] &&
341341
[ -n "$(git ls-files --others --exclude-standard)" ]
342342
then
343-
u="%"
343+
u="%${ZSH_VERSION+%}"
344344
fi
345345

346346
if [ -n "${GIT_PS1_SHOWUPSTREAM-}" ]; then

0 commit comments

Comments
 (0)