I'm using sublime text 3 with Terminal,
{
// The command to execute for the terminal, leave blank for the OS default
// On OS X the terminal can be set to iTerm.sh to execute iTerm
//"terminal": "",
"terminal": "D:\\Tool\\cmder\\Cmder.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": []
}
but, it always open c:\Users\TZ
Hi @atian25,
By default cmder opens in a user's profile. You can either change this setting system wide (I have never tried this so I can't provide instructions) or you can use the /START parameter when launching cmder.
It looks like you can configure the Terminal plugin to pass the /START parameter using the parameters array. For example, if you would like cmder to open in your c:\ directory Terminal's configuration would look something like:
{
// The command to execute for the terminal, leave blank for the OS default
// On OS X the terminal can be set to iTerm.sh to execute iTerm
//"terminal": "",
"terminal": "D:\\Tool\\cmder\\Cmder.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": ["/START", "c:/"]
}
I means how to open the special project directory from sublime.
when using sublime plugin Terminal with cmd:
Terminal key ctrl+shift+tcmd and auto jump to the folder d:\my-project\srccmder can do the same thingReplace "c:/" with "%CWD%". If that does not work, I would try asking your question in the Terminal plugin's forum.
yes, it works! thanks.
Thanks for this! I've been searching for that info for hours!
Where can we find some documentation about that START parameter or other parameters available to Cmdr? Didn't find "official" or "complete" or even "quite complete" Cmdr documentation out there.
Thanks @pwiesner , It worked for me.
The best part is that we can also use Ctrl+Shift+t also :)
Thank you so much. I was nearing my wit's end. For reference, this behavior of Terminal is documented here.
@pwiesner how to set "parameters": ["/START","xxxxx"] in mac?
Most helpful comment
Replace "c:/" with "%CWD%". If that does not work, I would try asking your question in the Terminal plugin's forum.