Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shell_cmd or cmd is required #71

Open
klonuo opened this issue Jun 5, 2016 · 2 comments
Open

shell_cmd or cmd is required #71

klonuo opened this issue Jun 5, 2016 · 2 comments

Comments

@klonuo
Copy link

klonuo commented Jun 5, 2016

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"]
@misfo
Copy link
Owner

misfo commented Jun 9, 2016

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...

@max-kamps
Copy link

max-kamps commented Nov 19, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants