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

Replace host_str with "$VIRTUAL_ENV" if exists #21

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shirok1
Copy link

@shirok1 shirok1 commented Mar 21, 2023

A rough proof of concept. I think this is what #16 talking about.

screenshot

@Moarram
Copy link
Owner

Moarram commented Mar 23, 2023

I see what you mean. I'd love for ENV to be it's own segment with a dedicated color, but due to the way I've built Headline it's somewhat difficult to add more information segments. However, you've demonstrated that it's easy to modify an existing segment to achieve desired behavior.

To that end, I've just pushed commit c12368a making it even easier to customize the segment data sources by elevating them out of the prompt function so you can set them in ~/.zshrc or wherever. Only downside (and why I didn't do this originally) is that I need to use eval which potentially introduces security concerns that I don't fully understand.

Hopefully this will work reasonably well for you until I can make it easier to add segments

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.

2 participants