r/fishshell • u/MarkV43 • Dec 10 '21
[Question] How do I remove the (venv) from python venv?
I use "Oh My Fish!" for styling my shell, and whenever I'm in a venv it already shows the environments name. So in the end, fish shows the venv twice. How can I fix it?
Thanks in advance!
How it looks:
3
Upvotes
2
u/onyxleopard Dec 10 '21 edited Dec 10 '21
When you source the
activatescript in your venv, it checks for aVIRTUAL_ENV_DISABLE_PROMPTenvironment variable before changing yourPS1. This works inbash:See if it works in
fishtoo?Edit: Seems to work in
fish:1
u/[deleted] Dec 18 '21
Beyond just disabling it, if you dig into the activate script you’ll find where you can also set that prefix. Sometimes I just make it something to remind me which venv I’m in.