matchai/spacefish

Display active python virtual environment

Pilgrim1379 opened this issue ยท 4 comments

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

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

@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?

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

Whoops! Forgot to close this one. ๐Ÿ˜