#389 -r switch not re-executed for new tabs

pending-invalid
nobody
None
1
2011-07-15
2011-07-14
Alectrus
No

Problem:

When using the -r switch on the command line to run Console, the command in the -r switch is executed when Console starts but when starting a new tab, it is not. My usecase is that I keep all of my aliases in a file "aliases.cmd" that I execute as:

C:\tools\Console2\Console.exe -r "/K c:\tools\aliases.cmd"

And similarly for the regular Command prompt. However, my aliases are not set on any new tab, only the first one.

Solution:

When starting a new tab, the -r switch should be re-executed.

Discussion

  • Kirill
    Kirill
    2011-07-15

    • priority: 5 --> 1
    • status: open --> pending-invalid
     
  • Kirill
    Kirill
    2011-07-15

    What you really want to do - especially, given that you want your aliases to be aplied to all your tabs all the time - is to change the Shell of each tab to have "cmd.exe /k d:\path\to\aliases.cmd" (without quotes or with quotes around the path if it contains spaces).

    -r switch alone says: "Open the first tab and append this string to the Shell field". If you would specify

    -t Console -r "/k aliases.cmd" -t VS2008 -r "/k cd \work"

    it means: open tab, named Console, with extra "/k aliases.cmd" on the command line; then open tab, named VS2008, with extra "/k cd \work" on the command line.