Open Almas-Ali opened 7 months ago
How would this workon behave? How does it know what to activate?
For example you have an environment .venv
you can use workon .venv
to activate it. Behind the sean it detects the OS and set the path automatically. I can give it a pull request, if the maintainers agrees to do so.
PR welcome. Just make sure to implement it for all shells we support, with tests. IMHO one of the big challenges will be how to detect and adapt it to each shell.
What's the problem this feature will solve?
We can activate a
virtualenv
by just typingworkon env_name
. This feature exists in some other virtual environment packages in Pypi. But I think this feature should in this package as well.Describe the solution you'd like
This will help to active an environment easy with just a command and will be same for Windows and Linux or Mac as well. No more multiple commands for different operating system.
We can add a
entry_points
script nameworkon
and add activation commands built in to that.