-
-
Notifications
You must be signed in to change notification settings - Fork 971
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
Add zstyle color support to PS2 #481
Conversation
Why does the color here needs to be customizable? Doesn't seem like something many would care about. What would you personally set it to? |
@mafredri ⬆️ |
Sorry, missed this. The main reason I wanted to make this customizable is that |
Can you fix the merge conflict and add the color setting to the ASCII art that shows where in the prompt it is? |
5bd1b40
to
a24bf95
Compare
@sindresorhus I've amended the feedback and I decided to use @ashb's naming suggestion (thanks!) while I was at it. |
* upstream/master: Renice the async worker (sindresorhus#505) Add zstyle color support to PS2 (sindresorhus#481) Improve issue template and system reporting (sindresorhus#517) Guard against (ana)conda changing PS1 (sindresorhus#516) 1.11.0 Add coloring for git dirty-asterisk (sindresorhus#491) Support changing color of the Git action part of the prompt (sindresorhus#486) Use ellipsis for continuation prompt (PS2) (sindresorhus#493) Fix missing ─ in readme color diagram Fix extra space in color diagram of readme Simplify the setup phase in the readme (sindresorhus#494) Use box characters for prompt diagram in the readme (sindresorhus#495)
The most important part of this PR changes the PS2 prompt to use the actual
prompt:success
/prompt:error
colors. The second part adds support for styling the PS2 part that prefixes the prompt indicator (e.g.... quote
).Not sure what to call it, went with
prompt2:faded
as it's the faded part of the PS2, but it might as well be calledprompt2:parser_status
.