Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added clean/dirty characters for git repositories #2052

Closed
wants to merge 1 commit into from
Closed

Added clean/dirty characters for git repositories #2052

wants to merge 1 commit into from

Conversation

alexdebril
Copy link

Hello,

I added a few lines to deal with git repositories in the gnzh theme :

  • a green ✓ when it's clean
  • a red ✗ when it's dirty

@mcornella
Copy link
Member

👍

This is how it looks on my terminal:
captura de pantalla de 2014-06-04 16 49 17

@apjanke
Copy link
Contributor

apjanke commented Jul 1, 2015

Hi folks. There's a new PR #4113 for an eval-related problem in gnzh that interacts with this PR. If #4113 gets merged, change this:

GIT_CLEAN_COLOR="%{$fg[green]%}"
GIT_DIRTY_COLOR="%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_CLEAN=" $GIT_CLEAN_COLOR✓"
ZSH_THEME_GIT_PROMPT_DIRTY=" $GIT_DIRTY_COLOR✗"

to this.

local GIT_CLEAN_COLOR="green"
local GIT_DIRTY_COLOR="red"
ZSH_THEME_GIT_PROMPT_CLEAN=" %F{$GIT_CLEAN_COLOR}✓%f"
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{$GIT_DIRTY_COLOR}✗%f"

(Even if #4113 doesn't get merged, I think this theme should be resetting the color at the end of the ZSH_*_ variables anyway; I'm not sure it's guaranteed to be reset for you by the git prompt functions.)

@reagle
Copy link

reagle commented Jun 6, 2017

Whatever happened to this? I really like gnzh but would like more git info.

@mcornella mcornella added Area: theme Issue or PR related to a theme Status: conflicts Pull Request that has conflicts with the master branch labels Mar 24, 2019
@alexdebril alexdebril closed this Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: theme Issue or PR related to a theme Status: conflicts Pull Request that has conflicts with the master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants