pypa / virtualenv

Virtual Python Environment builder
https://virtualenv.pypa.io
MIT License
4.82k stars 1.03k forks source link

`source venv/bin/activate` now works between different shells (fish/zsh/ect...) #2653

Closed TheRook closed 1 year ago

TheRook commented 1 year ago

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

Hey everyone I noticed source venv/bin/activate wasn't working on fish, and that is when I found a better way of passing environment variables around. If you execute a bash script with #!/usr/bin/env bash you will pass in environment variables, and features like EXPORT and SET will also work.

There is no reason not to have this feature, as it is helpful for anyone who cannot use bash, but would like to use the default venv files produced.

gaborbernat commented 1 year ago

On fish you need to use activate.fish not that script.