I use Console2 as my terminal and to pass it a directory to open at, you need this template:
"C:\Program Files\Console2\Console.exe" -d "%1"
You can also pass it a tab argument:
"C:\Program Files\Console2\Console.exe" -t "Git Bash" -d "%1"
This would open Console using the tab settings named āGit Bashā. That is, it would open a new Git Bash prompt. Would be good to be able to configure the optional argument to accommodate these settings. For convenience, Iāve copied in the content of the help docs in regard to command line options:
[code]Command line parameters
Console supports these command line parameters:
-c
Specifies a configuration file.
-w
Sets main window title. This option will override all other main window title settings (e.g. āuse tab titlesā setting)
-t
Specifies a startup tab. Tab must be defined in Console settings.
-d
Specifies a startup directory. If you want to parametrize startup dirs, you need to specify startup directory parameter as ā%1ā\ (backslash is outside of the double quotes)
-r
Specifies a startup shell command.
-ts
Specifies sleep time between starting next tab if multiple -tās are specified.
Note: -t option is not used to set tabās title. It specifies one of the names of the tabs defined in Console settings.
Note: If you specify multiple -t options, you can specify multiple -d and -r options as well. In that case, each -t, -d and -r option will be grouped together. If there is no corresponding -d option for a -t option, the initial directory from that tabās settings will be used. For example:
Console.exe -t bash -d C:\WINDOWS -r āls -alā -t cmd -d D:\ -t ncftp
Will start ābashā tab in C:\WINDOWS, running āls -alā command in it and ācmdā tab in D:. āncftpā tab will be started in the initial directory specified in its settings.
Note: Some shells need an additional switch in the startup command string. E.g. when using cmd.exe, you must put /k at the beginning of your command string:
Console.exe -t cmd -r ā/k dir /bā
Note: -ts option can be useful if you want to start multiple instances of a tab, and tabās shell needs write access to some files during initialization Using -ts option, you can specify time to sleep between starting the next tab, giving each shell enough time to initialize itself.
[/code]
So, riffing on the Sass and Livereload stuff, we could open up two tabs and run shell commands to start up the Sass watcher in one and Livereload in another, all from one command. That would be pretty sweet.