virtualenv to switch between environments "1.0" and "2.0".
screen to manage terminals.
When I work on one environment I want all new
screen windows to start with this environment.
Can bash instruct
screen to set environment variable on new shell instances, so I could make an alias similar to this one:
alias one='export PRJCT=1.0; screen-magic-setenv PRJCT=1.0; workon 1.0' alias two='export PRJCT=2.0; screen-magic-setenv PRJCT=2.0; workon 2.0'
and afterwards in
[[ -z $PRJCT ]] || workon $PRJCT # switch to project if set
I know I can command
screen to set environment variable on new shells like below but it doesn't help as it won't work in an alias:
:setenv PRJCT 2.0