Skip to content

Custom prompt inside non-Python virtual environment #5503

Answered by davidkna
jdholtz asked this question in Q&A
Discussion options

You must be logged in to vote

Without an official module in starship, a custom or an env_var can likely achieve this, e.g.:

[env_vars."_PACMAN_VENV"]
format = "Pacman Env [$env_value]($style) "

In general, the details of how the prompt is shown differ from shell-to-shell. For instance, on bash the PS1-value is replaced where with zsh the PROMPT is not changed after initial set-up.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jdholtz
Comment options

@davidkna
Comment options

Answer selected by jdholtz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants