Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (16 sloc) 1.063 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[
{"keys": ["super+shift+c"], "command": "shell_prompt"},
{"keys": ["shift+super+alt+c"], "command": "subprocess_in_cwd", "args": {
// This AppleScript requires the access for assistive
// devices to be turned on in the Universal Access system
// preferences. Using Cmd-T keystroke instead (which
// doesn't require the above setting) does not work if keys
// are still held down from the Sublime Text keybinding.
"cmd": "osascript -e 'tell application \"Terminal\"' -e 'activate' -e 'tell application \"System Events\" to click menu item \"Basic\" of ((process \"Terminal\")'\\''s (menu bar 1)'\\''s (menu bar item \"Shell\")'\\''s (menu \"Shell\")'\\''s (menu item \"New Tab\")'\\''s (menu \"New Tab\"))' -e \"do script with command \\\"cd '$PWD' && clear\\\" in window 1\" -e 'end tell'",

// Wait for AppleScript to return a successful exit code. This allows
// for showing any error message the script may cause. For instance, if
// the user doesn't have their "Access for assistive devices" setting
// enabled.
"wait": true
} }
]
Something went wrong with that request. Please try again.