-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
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
Define Custom Colors #1101
Comments
oh-my-zsh uses spectrum by @sykora: https://github.com/sykora/etc/blob/master/zsh/functions/spectrum/ So you can do something like this:
to retrieve colors from the $FG variable. They must be three digit zero-padded. Enjoy! |
Ok, I just tried your code.
Result is a blinking path. There is no color, only my default color. Besides that, I am able to use predefined colors like |
You must be sure you're actually using a 256-color terminal mode. For instance, on Ubuntu, one must usually run
to enable 256-color support in Gnome Terminal. The reason I say this is it happened to me the other day...things were blinking and underlined and whatnot. |
I am using the Terminal App of OSX. It seems to be that it ignores this TERM setting. In the preferences of this app there is also no option to enable the 256 color mode. Is there another possibility to set custom colors in zsh? Thank you! |
I can't help much with Terminal.app; I use iTerm2 and you should check it out. It will support 256 colors. The issue is not ZSH. Color codes must be interpreted by the terminal app. If the terminal only has limited (16 color) support, other codes will fall back to somewhat unpredictable values (like the blinking effect). The terminal must be able to parse the codes (like the ones you were originally working with, that are now supplied by the |
FYI, current versions of Terminal.app have 256 color support, at least since Lion. (It declares BTW, inside prompts, you can use the more concise PROMPT='%(!.%F{red}.%F{241}%n)@%m:%B%F{green}%c%f%b # ' |
I tried to setup some custom colors in my zsh according to http://www.dawoodfall.net/index.php/custom-zsh-prompts. But it does not work.
But in my shell this appears:
^[[01;04;30muser@host:~ %
Anyone?
The text was updated successfully, but these errors were encountered: