Shell-Turtlestein icon indicating copy to clipboard operation
Shell-Turtlestein copied to clipboard

shell_cmd or cmd is required

Open klonuo opened this issue 8 years ago • 2 comments

Ctrl+Shift+C, type command and execute errors to this message:

shell_cmd or cmd is required

This change resolved it for me:

--- a/Default (Windows).sublime-keymap  
+++ b/Default (Windows).sublime-keymap  

@@ -1,5 +1,5 @@
 [
-   {"keys": ["ctrl+shift+c"], "command": "shell_prompt"},
+   {"keys": ["ctrl+shift+c"], "command": "shell_prompt", "args": { "cmd": ["cmd.exe"] } },
    {"keys": ["ctrl+shift+x"], "command": "shell_prompt", "args": { "run_previous": true } },
    {"keys": ["shift+ctrl+alt+c"], "command": "subprocess_in_cwd", "args": {
        "cmd": ["cmd.exe"]

klonuo avatar Jun 05 '16 16:06 klonuo

Hmm... I haven't seen that error before and unfortunately I don't have a Window machine to test on.

I'm hesitant to add your change to the repo because the shell_prompt command isn't designed to take a cmd argument...

misfo avatar Jun 09 '16 02:06 misfo

I had the same problem on macOS Sierra, fixed it with {"keys": ["super+shift+c"], "command": "shell_prompt", "args": { "cmd": ["/usr/bin/sh"] } }

max-kamps avatar Nov 19 '16 16:11 max-kamps