pythonbrew
pythonbrew copied to clipboard
rvmrc-like auto-switching venv
Will there be support for venv auto-switching (just like what RVM does) ?
In RVM it works like this: if there is .rvmrc
inside current directory, RVM will switch Ruby environment based on the content of the .rvmrc.
I'd love the same thing. Heck, if I wasn't under the pump right now at work I'd offer to code it up.
ps. Loving pythonbrew so far!
I'm gonna take a look at RVM's code some time. Hope that I can learn the idea from RVM and implement it for pythonbrew.
they hijack cd
cd ()
{
builtin cd "$@";
local result=$?;
__rvm_project_rvmrc;
__rvm_after_cd;
return $result
}
Personally, I'd rather not have this. I've never liked the fact that RVM hijacks cd and I'm not sure there is any other way to do it.
just ran into pythonbrew, I'd love to have the rvmrc like feature as well. because one has to explicitly create the file for auto venv switching, it shouldn't be a problem to the ones who chose not to use it.
+1
This can work too: https://github.com/cxreg/smartcd
+1
+1 would love this too :)
+1