agnoster-zsh-theme icon indicating copy to clipboard operation
agnoster-zsh-theme copied to clipboard

Gear and file count showing even when git repository is clean

Open olgabot opened this issue 7 years ago • 1 comments

Hello, I just finished a successful rebase but I can't get my prompt to go back to "green." There are no files to commit, so to my knowledge the working directory is clean. There aren't any background processes running either (output of jobs is empty), so I'm not sure why the gear is showing up.

screen shot 2018-08-27 at 2 36 17 pm

This is my .zshrc file which only redefines prompt_context()

Do you know what may be happening? Or am I in some kind of git hole? Thank you! Warmest, Olga

olgabot avatar Aug 27 '18 21:08 olgabot

Hi Olga!

The link to your .zshrc is to its latest version, so I can't be sure if it's the same as it was when you ran in to this issue. (When posting links to config files on GitHub, try pressing "y" when viewing the file to change the github URL to a permalink to the particular version you're viewing, so that it's still right when you make additional commits to it.)

At any rate, this:

ZSH_THEME="agnosterzak"

means you're using AgnosterZak (from over here, I think: https://github.com/zakaziko99/agnosterzak-ohmyzsh-theme), which is a downstream fork of plain Agnoster (this repo). Maybe try that repo for a more specific answer? The AgnosterZak code for setting the color of the git status segment has diverged from plain Agnoster – specifically, it's now using the parse_git_dirty function, which I think is provided by core Oh My Zsh, and not used by Agnoster – so I don't think I can diagnose this for you here.

apjanke avatar Jan 02 '20 22:01 apjanke