agnoster / agnoster-zsh-theme

A ZSH theme designed to disclose information contextually, with a powerline aesthetic
3.99k stars 587 forks source link

Gear and file count showing even when git repository is clean #87

Open olgabot opened 6 years ago

olgabot commented 6 years ago

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

apjanke commented 4 years ago

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.