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

Color issue with SHA1 hash on CentOS55 #10

Closed
orefalo opened this issue May 31, 2011 · 4 comments
Closed

Color issue with SHA1 hash on CentOS55 #10

orefalo opened this issue May 31, 2011 · 4 comments

Comments

@orefalo
Copy link
Contributor

orefalo commented May 31, 2011

I am running the same script on OSX and CentOS 55: It's a colorization issue.

On CentOS, the following prompt
(M=f7e6a) root@GIT.TEST.COM ~/test#

Will show =f7e6a black (it shows white on osx). Since my terminal has a black background, it appears invisible.

I tried changing a few settings with no success.

Please advise,
Thank you

@lvv
Copy link
Owner

lvv commented Jun 2, 2011

What kind of terminal do you use? Version? Does changing contrast on monitor makes it visible?

@orefalo
Copy link
Contributor Author

orefalo commented Jun 2, 2011

I run iConsole on Mac and remote ssh to centos 55, the $TERM is xterm-256color.

Changing the contrast doesn't work as it is really black on black - the only way to see that the hash is actually there is to do a selection, then with the blue selection bg you can see that it's a colorization issue

@lvv
Copy link
Owner

lvv commented Jun 3, 2011

It is not black on black. It is dim (dark gray) on black. All Mac terminals does not support dim color attribute and git-prompt uses white when on Mac. Through SSH it does not know that terminal is on Mac.

As temp work around you can set hex_vcs_color in git-prompt.conf

@orefalo
Copy link
Contributor Author

orefalo commented Jun 3, 2011

it worked, thank you

@orefalo orefalo closed this as completed Jun 3, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants