Terminus icon indicating copy to clipboard operation
Terminus copied to clipboard

How to open terminus with Cmder ?

Open kcvinker opened this issue 3 years ago • 5 comments

Hi, How to open terminus with Cmder ? I did this in settings file. But didn't worked. [ {"default_config": { "windows": "Cmder" } , "shell_configs" : [ { "name": "Cmder", "cmd": ["cmd.exe", "/k", "%CMDER_ROOT%\\vendor\\init.bat"], "env": {}, "enable": true, "platforms": ["windows"] }, { "name": "Command Prompt", "cmd": "cmd.exe", "env": {}, "enable": false, "platforms": ["windows"] }, ], }, ]

kcvinker avatar May 23 '21 12:05 kcvinker

Did you set the variable CMDER_ROOT in system settings?

randy3k avatar Jun 06 '21 08:06 randy3k

Yes.

kcvinker avatar Jun 06 '21 09:06 kcvinker

That it should work. What error did you see?

randy3k avatar Jun 06 '21 13:06 randy3k

I don't think that's the way. What I did was this in the Settings file:

    {
    "shell_configs": [
    ...
    	{
    		"name": "Cmder",
    		"cmd": ["cmd.exe", "/k", "C:\\Program Files\\cmder\\vendor\\init.bat"],
    		"env": {},
    		"enable": true,
    		"default": true,
    		"platforms": ["windows"]
    	},
    ...
    ],    
    }

Rourke101 avatar Feb 19 '22 12:02 Rourke101

It works on my PC, and my setting: shortcut key:

[
    { "keys": ["alt+1"], "command": "toggle_terminus_panel", "args": { "cmd": ["cmd.exe", "/k", "%CMDER_ROOT%\\vendor\\init.bat"], "cwd": "${file_path:${folder}}" } },
    { "keys": ["alt+2"], "command": "terminus_open", "args": { "cmd": ["cmd.exe", "/k", "%CMDER_ROOT%\\vendor\\init.bat"], "cwd": "${file_path:${folder}}", "title": "cmder" } },
    { "keys": ["alt+w"], "command": "terminus_close", "context": [{ "key": "terminus_view"}] },]

package settings > Terminus > command palette: refer to https://www.geeksforgeeks.org/how-to-use-terminal-in-sublime-text-editor/

[
   {
        "caption": "Terminal (panel)",
        "command": "terminus_open",
        "args"   : {
           "cmd": "Cmder.exe",
           "cwd": "${file_path:${folder}}",
           "title": "Command Prompt",
           "panel_name": "Terminus"
        }
   },
]

scillidan avatar Aug 29 '22 11:08 scillidan