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

feat(prompt): colorful prefixes and suffixes #1401

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gabrielmusskopf
Copy link

Description

Add a option to colorize the prefix and suffix of a section. By default, prefixes and suffixes dont consider the content color.

Default behavior was not changed, the prefix/suffix color will change only if the option is enabled

Screenshot

Default behavior
image

With SPACESHIP_PROMPT_COLORFUL_PREFIXES and SPACESHIP_PROMPT_COLORFUL_SUFFIXES
image

.spaceshiprc.zsh

SPACESHIP_PROMPT_FIRST_PREFIX_SHOW=true
SPACESHIP_PROMPT_COLORFUL_PREFIXES=true 
SPACESHIP_PROMPT_COLORFUL_SUFFIXES=true 
SPACESHIP_RPROMPT_FIRST_PREFIX_SHOW=true

SPACESHIP_USER_SHOW='always'
SPACESHIP_USER_COLOR='magenta'
SPACESHIP_USER_PREFIX='@'
SPACESHIP_USER_SUFFIX='@ '

@netlify
Copy link

netlify bot commented Sep 30, 2023

Deploy Preview for spaceship-prompt ready!

Name Link
🔨 Latest commit 69938e5
🔍 Latest deploy log https://app.netlify.com/sites/spaceship-prompt/deploys/65177648f614170008a8c04c
😎 Deploy Preview https://deploy-preview-1401--spaceship-prompt.netlify.app/config/prompt
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants