File tree Expand file tree Collapse file tree 1 file changed +8
-32
lines changed Expand file tree Collapse file tree 1 file changed +8
-32
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"shebang" : {
3
3
"description" : " [sh]hebang" ,
4
- "prefix" : [
5
- " sh" ,
6
- " shebang"
7
- ],
4
+ "prefix" : " shebang" ,
8
5
"body" : [
9
6
" #!/usr/bin/env ${1|bash,sh|}"
10
7
]
20
17
},
21
18
"if-else" : {
22
19
"description" : " [if] [e]lse" ,
23
- "prefix" : [
24
- " ife" ,
25
- " if-else"
26
- ],
20
+ "prefix" : " if-else" ,
27
21
"body" : [
28
22
" if ${1:command}; then" ,
29
23
" \t ${2:echo}" ,
34
28
},
35
29
"while" : {
36
30
"description" : " [wh]ile" ,
37
- "prefix" : [
38
- " wh" ,
39
- " while"
40
- ],
31
+ "prefix" : " while" ,
41
32
"body" : [
42
33
" while ${1:command}; do" ,
43
34
" \t $0" ,
46
37
},
47
38
"until" : {
48
39
"description" : " [un]til" ,
49
- "prefix" : [
50
- " un" ,
51
- " until"
52
- ],
40
+ "prefix" : " until" ,
53
41
"body" : [
54
42
" until ${1:command}; do" ,
55
43
" \t $0" ,
58
46
},
59
47
"for" : {
60
48
"description" : " [fo]r" ,
61
- "prefix" : [
62
- " fo" ,
63
- " for"
64
- ],
49
+ "prefix" : " for" ,
65
50
"body" : [
66
51
" for ${1:variable} in ${2:list}; do" ,
67
52
" \t $0" ,
70
55
},
71
56
"function" : {
72
57
"description" : " [fu]nction" ,
73
- "prefix" : [
74
- " fu" ,
75
- " function"
76
- ],
58
+ "prefix" : " function" ,
77
59
"body" : [
78
60
" ${1:function_name}() {" ,
79
61
" \t $0" ,
82
64
},
83
65
"main" : {
84
66
"description" : " [ma]in" ,
85
- "prefix" : [
86
- " ma" ,
87
- " main"
88
- ],
67
+ "prefix" : " main" ,
89
68
"body" : [
90
69
" main() {" ,
91
70
" \t $0" ,
227
206
},
228
207
"stream" : {
229
208
"description" : " [de]vice name" ,
230
- "prefix" : [
231
- " de" ,
232
- " dev"
233
- ],
209
+ "prefix" : " dev" ,
234
210
"body" : [
235
211
" /dev/${1|null,stdin,stdout,stderr|}"
236
212
]
You can’t perform that action at this time.
0 commit comments