Fish shell with python virtual environements #9270
-
Hi. I've stumbled across the following problem. How can I configure my fish shell to show me in parantheses (like in the bash shell) the python virtual environment I'm currently using ... ? |
Beta Was this translation helpful? Give feedback.
Answered by
faho
Oct 11, 2022
Replies: 1 comment 2 replies
-
Python's activate.fish script does this by default, unless you have set $VIRTUAL_ENV_DISABLE_PROMPT. So either you are using some other method to activate your virtual environment, or the prompt you are using disables it, presumably to show it elsewhere. E.g. our "disco" sample disables it to display the venv itself on the right side: fish-shell/share/tools/web_config/sample_prompts/disco.fish Lines 84 to 90 in 70d2e97 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
faho
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python's activate.fish script does this by default, unless you have set $VIRTUAL_ENV_DISABLE_PROMPT.
So either you are using some other method to activate your virtual environment, or the prompt you are using disables it, presumably to show it elsewhere. E.g. our "disco" sample disables it to display the venv itself on the right side:
fish-shell/share/tools/web_config/sample_prompts/disco.fish
Lines 84 to 90 in 70d2e97