use envvars in console.xml

jm
2009-03-23
2013-06-12
  • jm
    jm
    2009-03-23

    hi,

    kudos on the project man.

    I need to open several consoles at once in different places depending on what version of the project I am working on, for instance, it could be opening a console in C:\projecta\version1\bin, another in C:\projecta\version1\test and another in C:\projecta\version1\data. Or opeining the same ones but in  C:\projecta\version2\...

    I have managed to have a single console.xml for both by using this for hte tabs:

    <console shell="C:\cygwin\bin\bash.exe" init_dir="%PRO_HOME%\bin"/>
    <console shell="C:\cygwin\bin\bash.exe" init_dir="%PRO_HOME%\test"/>
    <console shell="C:\cygwin\bin\bash.exe" init_dir="%PRO_HOME%\data"/>
    in the tabs config.

    Then i have a cmd that sets appropiate envvars and then I lauch console, works great...until I exit console, that saves the config without using the envvars for init_dir and thus the next time I need console in the other version it does not work.

    Would you consider keeping the envvars in the config file if possible? It would add nice configurability

    I am using build 141
    thanks