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

Italic escape codes in theme file not working #6214

Closed
LindseyB opened this issue Jul 30, 2017 · 2 comments
Closed

Italic escape codes in theme file not working #6214

LindseyB opened this issue Jul 30, 2017 · 2 comments

Comments

@LindseyB
Copy link

What I have right now in my theme is the following:

PROMPT=$'%{$fg[cyan]%}%1~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}\e[3m$(git_prompt_info)\e[0m%{$fg[cyan]%}⇒%{$reset_color%} '

however when I look at the prompt in a repo it looks like:

screen shot 2017-07-29 at 10 54 53 pm

Which I would expect if my terminal didn't support italics however:

screen shot 2017-07-29 at 10 55 48 pm

I'm not sure if this is a bug or if I need to adjust something in my .zshrc, but the behavior is definitely not what I expected.

Any help is greatly appreciated. ❤️

@Shea690901
Copy link

Have you taken a look at your git_prompt_info?
Not that it resets your italic setting ;)

@LindseyB
Copy link
Author

Closing this that was my problem @Shea690901 so I moved the italic stuff into ZSH_THEME_GIT_PROMPT_PREFIX

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