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(segments): add Distrobox segment #5987

Closed

Conversation

BastianAsmussen
Copy link

Introduce a new segment to display the active Distrobox container name.

Prerequisites

  • I have read and understood the contributing guide.
  • The commit message follows the conventional commits guidelines.
  • Tests for the changes have been added (for bug fixes / features).
  • Docs have been added/updated (for bug fixes / features).

Description

Adds a Distrobox CLI segment to display the container name when inside a Distrobox container.

Introduce a new segment to display the active Distrobox container name.
@JanDeDobbeleer
Copy link
Owner

JanDeDobbeleer commented Dec 14, 2024

@BastianAsmussen thanks for the PR! Unfortunately, if all the segment does is check an environment variable value, this can be a simple text segment with the following template: {{ if .Env.CONTAINER_ID }} \uED95 {{ .Env.CONTAINER_ID }} {{ end }}. Therefore we don't really need a segment on its own.

@BastianAsmussen
Copy link
Author

Oh thank you, then I'll just do that myself, too! :)

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