Is there some way to change environment variables when changing workspaces? More specifically, is there some way to use linux shell scripts to do that task?
My work flow requires certain environment variables to be set for certain scripts to work properly. I source the environment setup script before beginning my work. Then I start SlickEdit which inherits those environment variables. The compile and execute commands which I have Slick configured to use depend on those Environment variables.
So, going to Project->All Workspaces->something_else.vpw, doesn't really work well. It is useful for quickly going to a different workspace to browse some code, but I can't compile or execute, so it's not useful for changing workspaces to actually work.
I imagine a macro could hook into the changing of workspaces, but is it possible to source a csh script, or use a unix "module load" and have that manipulate Slick's environment? I think the brute force solution would be to start a shell, source the desired script, dump the variables to STDOUT with env, capture that and parse it, and then change SlickEdit's Environment variables. Is there a chance someone has already done this?
Thanks,
-Ryan