New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for postactivate #1
Comments
Thanks for using virtualfish :) Aliases have been added. As to postactivate scripts, I feel the most... what's the Fish version of pythonic? Fishy? ...the most fishy way to do it might be using events instead of sourcing files (although input on this is appreciated). That said, I don't know how versatile they are, so I'll leave your pull request open for now too. |
Okay, tell me what you think of that. Personally, I prefer events to hook scripts for global stuff, but I'm in two minds about using them for per-env stuff. |
Hi, personally, I just needed to have it done and I am by no means a python I agree the hooks might be the best way, but until that time the simple I've am trying to switch to fish since yesteday, I am using version robert On 07/26/2012 01:50 PM, Adam Brenecki wrote:
stereoIT - Open Source Technology Partners |
I'm only a Fish beginner too :) Well, events are all implemented now, so you can write a function like this:
Then, once it works, save it with That said, I'm still not sure if this is the best approach. |
Hi Adam, for the first moment it looks like an overkill, but if you document one I mean: OK I need virtualenvwrapper in fish, I check google and find So at the moment I am not sure where this is supposed go, shall I just Also as many might come from virtualenvwrapper, would it be possible to If you manage to resolve those little things, that would be a perfect Many, many thanks for current work indeed. robert On 07/26/2012 02:30 PM, Adam Brenecki wrote:
stereoIT - Open Source Technology Partners |
Adam, I've today tested your updates and they works very well. I just added Thank you, Robert On 07/26/2012 02:30 PM, Adam Brenecki wrote:
stereoIT - Open Source Technology Partners |
I actually added the aliases you asked for in d793c95 on Thursday (you need to set Completion for |
Sorry, years later, but was there a resolution for If so, is there a preferred location for such function? Currently, I would put such a thing in |
Hi, this is what I settled on: All virtual envs in one file :
And this thing is used by
Hope it helps Robert On Sun, Jul 17, 2016 at 8:13 PM, Peter Coles notifications@github.com
stereoIT s.r.o. |
For what it's worth, I handle this use case via the Virtualhooks module for Tacklebox / Tackle. |
To directly answer @mrcoles' question: yes, the addition of Fish events was the resolution of this issue, and support for hook scripts will not be added to virtualfish core. As I've already mentioned in #8 and #31, I'm not opposed to merging a plugin that adds support for hook scripts; it could easily be as simple as the link @justinmayer posted. If all you're using the hooks for is to set and unset environment variables, there's also #92, which will add support for that directly once it's implemented. |
Hi,
I've started to use your virtualfish and I like it. Would it be possible to add support for postactivate actions? With virtualenvwrapper I can put this into bin/postactivate:
!/bin/bash
This hook is run after this virtualenv is activated.
PROJECT_PATH=/path/to/project
export DJANGO_SETTINGS_MODULE=project.settings
export PYTHONPATH=$PROJECT_PATH/src
cd $PROJECT_PATH
Also, aliases from acvirtualenv to workon might be handy.
The text was updated successfully, but these errors were encountered: