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

Add zstyle color support to PS2 #481

Merged
merged 3 commits into from
Dec 6, 2019
Merged

Add zstyle color support to PS2 #481

merged 3 commits into from
Dec 6, 2019

Conversation

mafredri
Copy link
Collaborator

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 called prompt2:parser_status.

readme.md Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

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?

Aloxaf added a commit to Aloxaf/pure that referenced this pull request Nov 10, 2019
@sindresorhus
Copy link
Owner

@mafredri ⬆️

@mafredri
Copy link
Collaborator Author

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?

Sorry, missed this. The main reason I wanted to make this customizable is that virtualenv is customizable and being able to change this allows you to create a uniform prompt experience.

@sindresorhus
Copy link
Owner

Can you fix the merge conflict and add the color setting to the ASCII art that shows where in the prompt it is?

readme.md Outdated Show resolved Hide resolved
@mafredri
Copy link
Collaborator Author

mafredri commented Dec 3, 2019

@sindresorhus I've amended the feedback and I decided to use @ashb's naming suggestion (thanks!) while I was at it.

@sindresorhus sindresorhus merged commit 742471d into master Dec 6, 2019
@sindresorhus sindresorhus deleted the fix-ps2-colors branch December 6, 2019 04:36
kgrz added a commit to kgrz/pure that referenced this pull request Dec 11, 2019
* 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)
kutsan pushed a commit to kutsan/pure that referenced this pull request Jun 19, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants