matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
960 stars 78 forks source link

Display active python virtual environment #146

Closed Pilgrim1379 closed 5 years ago

Pilgrim1379 commented 5 years ago

How does one enable the display of the current active python virtual environment in the prompt?

matchai commented 5 years ago

Hey @thepreacher! Thank you for your interest in having Python virtual environments being added to spacefish.

This is definitely a feature we'd be interested in having added to the project, and we would welcome contributions if you would be interested in contributing. 😄

Here is the equivalent section file from spaceship, which implements the venv section: https://github.com/denysdovhan/spaceship-prompt/blob/master/sections/venv.zsh

azdanov commented 5 years ago

@matchai Hey! 👋

Don't want to open another issue since these are kinda similar.

I was wondering if making pipenv work is somewhat the same?

johnfraney commented 5 years ago

@azdanov Both virtualenv and pipenv set the $VIRTUAL_ENV environment variable, which is how the pure fish prompt provides this functionality.

matchai commented 5 years ago

Whoops! Forgot to close this one. 😅