-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefault.sublime-commands
76 lines (67 loc) · 2.41 KB
/
Default.sublime-commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
///////////////////////////////////////////////////////////
// Jam-Es.com
//////////////////////////////////////////////////////////
// This defines all the commands you can use
// press Ctrl Shift P and type them in
[
// This item opens Command Prompt in a new window when the command 'Command Prompt (new Window)' is typed in
{
// The command to type in:
"caption": "Command Prompt (new Window)",
// Tell terminus to open something:
"command": "terminus_open",
// Tell terminus what to open:
"args" : {
// Tell terminus to open Command Prompt
"cmd": "cmd.exe",
// Tell command prompt what the current working directory is
"cwd": "${file_path:${folder}}",
// Give the window a title:
"title": "Command Prompt"
}
},
// Opens Command Prompt in the panel at the bottom of the screen when this command is typed in
{
"caption": "Command Prompt (panel)",
"command": "terminus_open",
"args" : {
"cmd": "cmd.exe",
"cwd": "${file_path:${folder}}",
"title": "Command Prompt",
// This additional line tells Terminus that we want to open it in the panel at the bottom of the screen and not a new window
"panel_name": "Terminus"
}
},
// Opens Git Bash in new window when command is typed in
{
"caption": "Git Bash (new Window)",
"command": "terminus_open",
"args" : {
// Remember to change the following path
"cmd": ["C:\\Program Files\\Git\\bin\\bash.exe", "-i", "-l"],
"cwd": "${file_path:${folder}}",
"title": "Git Bash"
}
},
// Opens Git Bash in panel when command is typed in
{
"caption": "Git Bash (panel)",
"command": "terminus_open",
"args" : {
// Remember to change the following path
"cmd": ["C:\\Program Files\\Git\\bin\\bash.exe", "-i", "-l"],
"cwd": "${file_path:${folder}}",
"title": "Git Bash",
"panel_name": "Terminus"
}
},
{
"caption": "Terminus: Open Default Shell in Split Tab",
"command": "terminus_open",
"args": {
"post_window_hooks": [
["carry_file_to_pane", {"direction": "down"}]
]
}
}
]