Spaceship-prompt: Random Git Status icons

Created on 21 Aug 2017  路  13Comments  路  Source: denysdovhan/spaceship-prompt

Issue

Random Git Status icons are displayed after running a command inside a Git folder, even without doing anything at all to the files inside.

Had to disable Git Status icons from the theme. Having this issue makes them very misleading.

Screenshot

screenshot

Environment

Operating system: Windows (using WSL)
Terminal emulator: Hyper
ZSH version: zsh 5.1.1 (x86_64-ubuntu-linux-gnu)

bug help-wanted

Most helpful comment

Same issue.
Windows 10 Bash, Hyper terminal, ZSH 5.1.1

screenshot_091117_084130_pm

All 13 comments

That's unfortunate. Currently we're depending on OMZ for git status indicators. But that shouldn't be causing this. Let us take a look into this.

BTW awesome symbol selection 馃憤

BTW awesome symbol selection 馃憤

Yeah, we should consider adding them to the theme.

I can't reproduce this with zsh 5.1.1 (x86_64-ubuntu-linux-gnu). Could you share the output produced by setopt xtrace verbose, preferably for more than one prompt redraws ?


If I'm not wrong, those characters are part of [nerd-fonts], Care to share your configuration in [presets] @AramC92 ?

Output 1
Output 2
Output 3


The Octocat symbol is indeed from nerd-fonts. The rest however, I patched the font I use (Knack NF) to have a few extra symbols.

I still get this problem with other fonts though, just tried others to be sure.

Presets

Same issue.
Windows 10 Bash, Hyper terminal, ZSH 5.1.1

screenshot_091117_084130_pm

same as above, fonts installed on both windows and WSL

This issue never happened to me. @salmanulfarzy how is your investigation on this going?

Unable to reproduce after multiple attempts.

Wow, that is an interesting bug. Just curious, among those who can reproduce, has anyone tried 3.0 branch which doesn't depend on OMZ for git status anymore?

@AramC92 @Aetherall @ilyador could you guys please try 3.0 ?

@chaoky There are no git indicators in the screenshot. Are you referring to the git branch symbol ?

yes

I have this problem too with the latest version, zsh 5.4.2, using WSL on windows 10.
Heres a link to gists that contain some relevant output after running setopt xtrace verbose

Maybe I'm reading it wrong but it seems that the status tests are randomly passing even when the pattern fails?
Is there anything else I can do that would help?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwhipp picture jwhipp  路  3Comments

salmanulfarzy picture salmanulfarzy  路  3Comments

oldchevy picture oldchevy  路  3Comments

doole picture doole  路  4Comments

gabrielpedepera picture gabrielpedepera  路  3Comments