I use multiple screens on my system, I'm using separate session for each branch I may be working on. Now I would like to set environment variables depending on screen name (I name screens by branch path). I've tried this in
screen -t "ABC-1234" bash -ic 'OUTPUTROOT=/home/me/src/NextGen/branches/ABC-1234/bin' screen -t "ABC-1234" bash -ic 'SVN_ROOT=/home/me/src/NextGen/branches/ABC-1234' screen -t "DEF-5678" bash -ic 'OUTPUTROOT=/home/me/src/NextGen/branches/DEF-5678/bin' screen -t "DEF-5678" bash -ic 'SVN_ROOT=/home/me/src/NextGen/branches/DEF-5678'
but it doesn't seem to work, the env variables do not get set if my screens are called "ABC-1234" or "DEF-5678" and I open a new window using
Ctrl-a c ...