@enjoys/context-engine 1.3.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/data/codeActions/angular.json +126 -0
  2. package/data/codeActions/nestjs.json +124 -0
  3. package/data/codeActions/nextjs.json +198 -0
  4. package/data/codeActions/react.json +154 -0
  5. package/data/codeActions/shadcn.json +112 -0
  6. package/data/codeActions/shell.json +169 -26
  7. package/data/codeLens/angular.json +22 -0
  8. package/data/codeLens/nestjs.json +21 -0
  9. package/data/codeLens/nextjs.json +117 -0
  10. package/data/codeLens/react.json +89 -0
  11. package/data/codeLens/shadcn.json +89 -0
  12. package/data/codeLens/shell.json +59 -17
  13. package/data/codeLens/tailwindcss.json +56 -0
  14. package/data/color/angular.json +21 -0
  15. package/data/color/nestjs.json +18 -0
  16. package/data/color/nextjs.json +22 -0
  17. package/data/color/react.json +93 -0
  18. package/data/color/shadcn.json +66 -0
  19. package/data/color/shell.json +106 -80
  20. package/data/commands/angular.json +312 -0
  21. package/data/commands/manifest.json +5 -0
  22. package/data/commands/nestjs.json +273 -0
  23. package/data/commands/nextjs.json +123 -0
  24. package/data/commands/react.json +210 -0
  25. package/data/commands/shadcn.json +410 -0
  26. package/data/commands/shell.json +571 -41
  27. package/data/completion/angular.json +1490 -0
  28. package/data/completion/css.json +793 -0
  29. package/data/completion/nestjs.json +1454 -0
  30. package/data/completion/nextjs.json +1373 -0
  31. package/data/completion/react.json +1319 -0
  32. package/data/completion/shadcn.json +1202 -0
  33. package/data/completion/shell.json +2446 -510
  34. package/data/declaration/angular.json +46 -0
  35. package/data/declaration/nestjs.json +47 -0
  36. package/data/declaration/nextjs.json +274 -0
  37. package/data/declaration/react.json +199 -0
  38. package/data/declaration/shadcn.json +211 -0
  39. package/data/declaration/shell.json +343 -24
  40. package/data/declaration/tailwindcss.json +72 -0
  41. package/data/definition/angular.json +670 -0
  42. package/data/definition/nestjs.json +684 -0
  43. package/data/definition/nextjs.json +439 -0
  44. package/data/definition/react.json +397 -0
  45. package/data/definition/shadcn.json +99 -0
  46. package/data/definition/shell.json +820 -0
  47. package/data/documentHighlight/angular.json +414 -0
  48. package/data/documentHighlight/css.json +77 -2
  49. package/data/documentHighlight/nestjs.json +115 -0
  50. package/data/documentHighlight/nextjs.json +212 -0
  51. package/data/documentHighlight/react.json +119 -0
  52. package/data/documentHighlight/shadcn.json +168 -0
  53. package/data/documentHighlight/shell.json +664 -334
  54. package/data/documentHighlight/tailwindcss.json +105 -10
  55. package/data/documentRangeFormatting/angular.json +45 -0
  56. package/data/documentRangeFormatting/nestjs.json +17 -0
  57. package/data/documentRangeFormatting/nextjs.json +17 -0
  58. package/data/documentRangeFormatting/react.json +78 -0
  59. package/data/documentRangeFormatting/shadcn.json +45 -0
  60. package/data/documentRangeFormatting/shell.json +120 -53
  61. package/data/documentSymbol/angular.json +180 -0
  62. package/data/documentSymbol/nestjs.json +152 -0
  63. package/data/documentSymbol/nextjs.json +159 -0
  64. package/data/documentSymbol/react.json +145 -0
  65. package/data/documentSymbol/shadcn.json +131 -0
  66. package/data/documentSymbol/shell.json +166 -26
  67. package/data/documentSymbol/tailwindcss.json +49 -0
  68. package/data/foldingRange/angular.json +99 -0
  69. package/data/foldingRange/nestjs.json +26 -0
  70. package/data/foldingRange/nextjs.json +26 -0
  71. package/data/foldingRange/react.json +120 -0
  72. package/data/foldingRange/shadcn.json +93 -0
  73. package/data/foldingRange/shell.json +106 -46
  74. package/data/formatting/angular.json +21 -0
  75. package/data/formatting/nestjs.json +23 -0
  76. package/data/formatting/nextjs.json +23 -0
  77. package/data/formatting/react.json +71 -0
  78. package/data/formatting/shadcn.json +61 -0
  79. package/data/formatting/shell.json +103 -19
  80. package/data/hover/angular.json +455 -0
  81. package/data/hover/css.json +232 -0
  82. package/data/hover/nestjs.json +296 -0
  83. package/data/hover/nextjs.json +305 -0
  84. package/data/hover/react.json +173 -0
  85. package/data/hover/shadcn.json +450 -0
  86. package/data/hover/shell.json +684 -75
  87. package/data/implementation/angular.json +22 -0
  88. package/data/implementation/nestjs.json +24 -0
  89. package/data/implementation/nextjs.json +137 -0
  90. package/data/implementation/react.json +125 -0
  91. package/data/implementation/shadcn.json +89 -0
  92. package/data/implementation/shell.json +59 -3
  93. package/data/inlayHints/angular.json +24 -0
  94. package/data/inlayHints/nestjs.json +24 -0
  95. package/data/inlayHints/nextjs.json +143 -0
  96. package/data/inlayHints/react.json +177 -0
  97. package/data/inlayHints/shadcn.json +109 -0
  98. package/data/inlayHints/shell.json +223 -35
  99. package/data/inlineCompletions/angular.json +135 -0
  100. package/data/inlineCompletions/nestjs.json +25 -0
  101. package/data/inlineCompletions/nextjs.json +179 -0
  102. package/data/inlineCompletions/react.json +203 -0
  103. package/data/inlineCompletions/shadcn.json +115 -0
  104. package/data/inlineCompletions/shell.json +185 -35
  105. package/data/linkedEditingRange/angular.json +23 -0
  106. package/data/linkedEditingRange/nestjs.json +10 -0
  107. package/data/linkedEditingRange/nextjs.json +11 -0
  108. package/data/linkedEditingRange/react.json +75 -0
  109. package/data/linkedEditingRange/shadcn.json +23 -0
  110. package/data/linkedEditingRange/shell.json +25 -25
  111. package/data/links/angular.json +95 -0
  112. package/data/links/nestjs.json +130 -0
  113. package/data/links/nextjs.json +91 -0
  114. package/data/links/react.json +75 -0
  115. package/data/links/shadcn.json +98 -0
  116. package/data/links/shell.json +56 -0
  117. package/data/links/tailwindcss.json +25 -0
  118. package/data/manifest.json +339 -152
  119. package/data/onTypeFormatting/angular.json +14 -0
  120. package/data/onTypeFormatting/nestjs.json +16 -0
  121. package/data/onTypeFormatting/nextjs.json +17 -0
  122. package/data/onTypeFormatting/react.json +127 -0
  123. package/data/onTypeFormatting/shadcn.json +54 -0
  124. package/data/onTypeFormatting/shell.json +72 -68
  125. package/data/rangeSemanticTokens/angular.json +140 -0
  126. package/data/rangeSemanticTokens/nestjs.json +27 -0
  127. package/data/rangeSemanticTokens/nextjs.json +28 -0
  128. package/data/rangeSemanticTokens/react.json +216 -0
  129. package/data/rangeSemanticTokens/shadcn.json +140 -0
  130. package/data/rangeSemanticTokens/shell.json +247 -69
  131. package/data/rangeSemanticTokens/tailwindcss.json +99 -8
  132. package/data/references/angular.json +26 -0
  133. package/data/references/nestjs.json +24 -0
  134. package/data/references/nextjs.json +178 -0
  135. package/data/references/react.json +192 -0
  136. package/data/references/shadcn.json +101 -0
  137. package/data/references/shell.json +323 -92
  138. package/data/references/tailwindcss.json +66 -0
  139. package/data/rename/angular.json +131 -0
  140. package/data/rename/nestjs.json +32 -0
  141. package/data/rename/nextjs.json +31 -0
  142. package/data/rename/react.json +88 -0
  143. package/data/rename/shadcn.json +79 -0
  144. package/data/rename/shell.json +101 -31
  145. package/data/selectionRange/angular.json +95 -0
  146. package/data/selectionRange/nestjs.json +21 -0
  147. package/data/selectionRange/nextjs.json +22 -0
  148. package/data/selectionRange/react.json +87 -0
  149. package/data/selectionRange/shadcn.json +89 -0
  150. package/data/selectionRange/shell.json +65 -35
  151. package/data/semanticTokens/angular.json +198 -0
  152. package/data/semanticTokens/nestjs.json +35 -0
  153. package/data/semanticTokens/nextjs.json +38 -0
  154. package/data/semanticTokens/react.json +215 -0
  155. package/data/semanticTokens/shadcn.json +180 -0
  156. package/data/semanticTokens/shell.json +238 -65
  157. package/data/signatureHelp/angular.json +182 -0
  158. package/data/signatureHelp/nestjs.json +128 -0
  159. package/data/signatureHelp/nextjs.json +127 -0
  160. package/data/signatureHelp/react.json +281 -0
  161. package/data/signatureHelp/shadcn.json +237 -0
  162. package/data/signatureHelp/shell.json +797 -104
  163. package/data/typeDefinition/angular.json +362 -0
  164. package/data/typeDefinition/nestjs.json +334 -0
  165. package/data/typeDefinition/nextjs.json +285 -0
  166. package/data/typeDefinition/react.json +236 -0
  167. package/data/typeDefinition/shadcn.json +292 -0
  168. package/data/typeDefinition/shell.json +104 -40
  169. package/package.json +1 -1
  170. package/data/codeActions/bash.json +0 -169
  171. package/data/codeActions/zsh.json +0 -49
  172. package/data/codeLens/bash.json +0 -75
  173. package/data/codeLens/zsh.json +0 -19
  174. package/data/color/bash.json +0 -100
  175. package/data/color/zsh.json +0 -80
  176. package/data/commands/bash.json +0 -102
  177. package/data/commands/zsh.json +0 -166
  178. package/data/completion/bash.json +0 -1184
  179. package/data/completion/zsh.json +0 -973
  180. package/data/declaration/bash.json +0 -301
  181. package/data/declaration/zsh.json +0 -205
  182. package/data/definition/bash.json +0 -565
  183. package/data/definition/zsh.json +0 -350
  184. package/data/documentHighlight/bash.json +0 -393
  185. package/data/documentHighlight/zsh.json +0 -266
  186. package/data/documentRangeFormatting/bash.json +0 -41
  187. package/data/documentRangeFormatting/zsh.json +0 -59
  188. package/data/documentSymbol/bash.json +0 -124
  189. package/data/documentSymbol/zsh.json +0 -26
  190. package/data/foldingRange/bash.json +0 -76
  191. package/data/foldingRange/zsh.json +0 -46
  192. package/data/formatting/bash.json +0 -88
  193. package/data/formatting/zsh.json +0 -28
  194. package/data/hover/bash.json +0 -579
  195. package/data/hover/zsh.json +0 -96
  196. package/data/implementation/bash.json +0 -44
  197. package/data/implementation/zsh.json +0 -41
  198. package/data/inlayHints/bash.json +0 -207
  199. package/data/inlayHints/zsh.json +0 -43
  200. package/data/inlineCompletions/bash.json +0 -155
  201. package/data/inlineCompletions/zsh.json +0 -17
  202. package/data/linkedEditingRange/bash.json +0 -25
  203. package/data/linkedEditingRange/zsh.json +0 -25
  204. package/data/links/bash.json +0 -56
  205. package/data/links/zsh.json +0 -15
  206. package/data/onTypeFormatting/bash.json +0 -68
  207. package/data/onTypeFormatting/zsh.json +0 -68
  208. package/data/rangeSemanticTokens/bash.json +0 -90
  209. package/data/rangeSemanticTokens/zsh.json +0 -76
  210. package/data/references/bash.json +0 -221
  211. package/data/references/zsh.json +0 -166
  212. package/data/rename/bash.json +0 -37
  213. package/data/rename/zsh.json +0 -31
  214. package/data/selectionRange/bash.json +0 -35
  215. package/data/selectionRange/zsh.json +0 -35
  216. package/data/semanticTokens/bash.json +0 -71
  217. package/data/semanticTokens/zsh.json +0 -71
  218. package/data/signatureHelp/bash.json +0 -111
  219. package/data/signatureHelp/zsh.json +0 -118
  220. package/data/typeDefinition/bash.json +0 -95
  221. package/data/typeDefinition/zsh.json +0 -40
@@ -1,41 +1,571 @@
1
- {
2
- "name": "sh",
3
- "description": "Shell Script command-line tool",
4
- "category": "development",
5
- "platforms": [
6
- "linux",
7
- "macos",
8
- "windows"
9
- ],
10
- "shells": [
11
- "bash",
12
- "zsh",
13
- "powershell"
14
- ],
15
- "subcommands": [
16
- {
17
- "name": "-c 'command'",
18
- "description": "Execute command string",
19
- "args": [],
20
- "options": []
21
- },
22
- {
23
- "name": "script.sh",
24
- "description": "Execute script",
25
- "args": [],
26
- "options": []
27
- },
28
- {
29
- "name": "-x script.sh",
30
- "description": "Debug mode",
31
- "args": [],
32
- "options": []
33
- },
34
- {
35
- "name": "-n script.sh",
36
- "description": "Syntax check",
37
- "args": [],
38
- "options": []
39
- }
40
- ]
41
- }
1
+ {
2
+ "language": "shell",
3
+ "name": "sh",
4
+ "description": "Shell Script command-line tool",
5
+ "category": "development",
6
+ "platforms": [
7
+ "linux",
8
+ "macos",
9
+ "windows"
10
+ ],
11
+ "shells": [
12
+ "bash",
13
+ "zsh",
14
+ "powershell",
15
+ "fish"
16
+ ],
17
+ "subcommands": [
18
+ {
19
+ "name": "-c 'command'",
20
+ "description": "Execute command string",
21
+ "args": [],
22
+ "options": []
23
+ },
24
+ {
25
+ "name": "script.sh",
26
+ "description": "Execute script",
27
+ "args": [],
28
+ "options": []
29
+ },
30
+ {
31
+ "name": "-x script.sh",
32
+ "description": "Debug mode",
33
+ "args": [],
34
+ "options": []
35
+ },
36
+ {
37
+ "name": "-n script.sh",
38
+ "description": "Syntax check",
39
+ "args": [],
40
+ "options": []
41
+ },
42
+ {
43
+ "name": "run",
44
+ "description": "Execute a shell script file",
45
+ "args": [
46
+ {
47
+ "name": "<script>",
48
+ "type": "file",
49
+ "required": true,
50
+ "description": "Shell script to execute"
51
+ }
52
+ ],
53
+ "examples": [
54
+ "bash script.sh",
55
+ "bash deploy.sh --env production"
56
+ ]
57
+ },
58
+ {
59
+ "name": "login",
60
+ "description": "Start a login shell",
61
+ "args": [],
62
+ "examples": [
63
+ "bash --login",
64
+ "bash -l"
65
+ ]
66
+ }
67
+ ],
68
+ "globalOptions": [
69
+ {
70
+ "name": "--version",
71
+ "description": "Display version information and exit"
72
+ },
73
+ {
74
+ "name": "--help",
75
+ "description": "Display usage information and exit"
76
+ },
77
+ {
78
+ "name": "-c",
79
+ "description": "Execute commands from the following string argument",
80
+ "type": "string"
81
+ },
82
+ {
83
+ "name": "-i",
84
+ "description": "Start an interactive shell"
85
+ },
86
+ {
87
+ "name": "-l",
88
+ "description": "Act as if invoked as a login shell (same as --login)"
89
+ },
90
+ {
91
+ "name": "--login",
92
+ "description": "Act as if invoked as a login shell"
93
+ },
94
+ {
95
+ "name": "-r",
96
+ "description": "Start a restricted shell"
97
+ },
98
+ {
99
+ "name": "--restricted",
100
+ "description": "Start a restricted shell"
101
+ },
102
+ {
103
+ "name": "-s",
104
+ "description": "Read commands from standard input"
105
+ },
106
+ {
107
+ "name": "-D",
108
+ "description": "Print double-quoted strings preceded by $ (for localization)"
109
+ },
110
+ {
111
+ "name": "--dump-strings",
112
+ "description": "Same as -D"
113
+ },
114
+ {
115
+ "name": "-e",
116
+ "description": "Exit immediately if a command exits with non-zero status (set -e)"
117
+ },
118
+ {
119
+ "name": "-u",
120
+ "description": "Treat unset variables as an error (set -u)"
121
+ },
122
+ {
123
+ "name": "-x",
124
+ "description": "Print each command before executing it (set -x)"
125
+ },
126
+ {
127
+ "name": "-v",
128
+ "description": "Print shell input lines as they are read (set -v)"
129
+ },
130
+ {
131
+ "name": "-n",
132
+ "description": "Read commands but do not execute them (syntax check)"
133
+ },
134
+ {
135
+ "name": "-p",
136
+ "description": "Start in privileged mode"
137
+ },
138
+ {
139
+ "name": "--posix",
140
+ "description": "Change behavior to match the POSIX standard"
141
+ },
142
+ {
143
+ "name": "--norc",
144
+ "description": "Do not read the ~/.bashrc initialization file"
145
+ },
146
+ {
147
+ "name": "--noprofile",
148
+ "description": "Do not read /etc/profile or any personal profile files"
149
+ },
150
+ {
151
+ "name": "--rcfile",
152
+ "description": "Execute commands from specified file instead of ~/.bashrc",
153
+ "type": "file"
154
+ },
155
+ {
156
+ "name": "--init-file",
157
+ "description": "Same as --rcfile",
158
+ "type": "file"
159
+ },
160
+ {
161
+ "name": "-O",
162
+ "description": "Enable a shell option (shopt)",
163
+ "type": "string"
164
+ },
165
+ {
166
+ "name": "+O",
167
+ "description": "Disable a shell option (shopt)",
168
+ "type": "string"
169
+ },
170
+ {
171
+ "name": "--debugger",
172
+ "description": "Run the debugger profile before the shell starts"
173
+ },
174
+ {
175
+ "name": "--dump-po-strings",
176
+ "description": "Same as -D but output in GNU gettext PO format"
177
+ },
178
+ {
179
+ "name": "--verbose",
180
+ "description": "Same as -v"
181
+ },
182
+ {
183
+ "name": "--noediting",
184
+ "description": "Do not use the GNU Readline library for command-line editing"
185
+ }
186
+ ],
187
+ "builtinCommands": [
188
+ {
189
+ "name": "alias",
190
+ "description": "Define or display aliases",
191
+ "examples": [
192
+ "alias ll='ls -la'",
193
+ "alias"
194
+ ]
195
+ },
196
+ {
197
+ "name": "bg",
198
+ "description": "Resume a suspended job in the background",
199
+ "examples": [
200
+ "bg %1"
201
+ ]
202
+ },
203
+ {
204
+ "name": "cd",
205
+ "description": "Change the current directory",
206
+ "examples": [
207
+ "cd /tmp",
208
+ "cd -",
209
+ "cd ~"
210
+ ]
211
+ },
212
+ {
213
+ "name": "declare",
214
+ "description": "Declare variables and give them attributes",
215
+ "examples": [
216
+ "declare -i num=42",
217
+ "declare -a arr=()",
218
+ "declare -A map=()"
219
+ ]
220
+ },
221
+ {
222
+ "name": "echo",
223
+ "description": "Display a line of text",
224
+ "examples": [
225
+ "echo 'Hello'",
226
+ "echo -n 'no newline'",
227
+ "echo -e 'tab\\there'"
228
+ ]
229
+ },
230
+ {
231
+ "name": "eval",
232
+ "description": "Concatenate arguments and execute as a shell command",
233
+ "examples": [
234
+ "eval \"$cmd\""
235
+ ]
236
+ },
237
+ {
238
+ "name": "exec",
239
+ "description": "Replace the shell with the given command",
240
+ "examples": [
241
+ "exec bash --login",
242
+ "exec > output.log 2>&1"
243
+ ]
244
+ },
245
+ {
246
+ "name": "exit",
247
+ "description": "Exit the shell with a status",
248
+ "examples": [
249
+ "exit 0",
250
+ "exit 1"
251
+ ]
252
+ },
253
+ {
254
+ "name": "export",
255
+ "description": "Set environment variables for child processes",
256
+ "examples": [
257
+ "export PATH=\"$HOME/bin:$PATH\"",
258
+ "export -n VAR"
259
+ ]
260
+ },
261
+ {
262
+ "name": "fg",
263
+ "description": "Resume a suspended job in the foreground",
264
+ "examples": [
265
+ "fg %1"
266
+ ]
267
+ },
268
+ {
269
+ "name": "getopts",
270
+ "description": "Parse positional parameters as options",
271
+ "examples": [
272
+ "getopts 'ab:c' opt"
273
+ ]
274
+ },
275
+ {
276
+ "name": "hash",
277
+ "description": "Remember the full pathname of commands",
278
+ "examples": [
279
+ "hash -r",
280
+ "hash -d git"
281
+ ]
282
+ },
283
+ {
284
+ "name": "history",
285
+ "description": "Display or manipulate the history list",
286
+ "examples": [
287
+ "history",
288
+ "history -c",
289
+ "history 20"
290
+ ]
291
+ },
292
+ {
293
+ "name": "jobs",
294
+ "description": "Display status of jobs",
295
+ "examples": [
296
+ "jobs",
297
+ "jobs -l"
298
+ ]
299
+ },
300
+ {
301
+ "name": "kill",
302
+ "description": "Send a signal to a process",
303
+ "examples": [
304
+ "kill -9 1234",
305
+ "kill -SIGTERM %1",
306
+ "kill -0 $pid"
307
+ ]
308
+ },
309
+ {
310
+ "name": "let",
311
+ "description": "Evaluate arithmetic expressions",
312
+ "examples": [
313
+ "let 'x=5+3'",
314
+ "let x++"
315
+ ]
316
+ },
317
+ {
318
+ "name": "local",
319
+ "description": "Define local variables in a function",
320
+ "examples": [
321
+ "local var='value'",
322
+ "local -i num=0"
323
+ ]
324
+ },
325
+ {
326
+ "name": "printf",
327
+ "description": "Format and print data",
328
+ "examples": [
329
+ "printf '%s\\n' \"$var\"",
330
+ "printf '%-20s %d\\n' \"$name\" \"$count\""
331
+ ]
332
+ },
333
+ {
334
+ "name": "pushd",
335
+ "description": "Save current directory and change to another",
336
+ "examples": [
337
+ "pushd /tmp",
338
+ "pushd +1"
339
+ ]
340
+ },
341
+ {
342
+ "name": "popd",
343
+ "description": "Restore previously saved directory",
344
+ "examples": [
345
+ "popd",
346
+ "popd +1"
347
+ ]
348
+ },
349
+ {
350
+ "name": "read",
351
+ "description": "Read a line from standard input",
352
+ "examples": [
353
+ "read -p 'Name: ' name",
354
+ "read -r line",
355
+ "read -a array"
356
+ ]
357
+ },
358
+ {
359
+ "name": "readonly",
360
+ "description": "Mark variables as read-only",
361
+ "examples": [
362
+ "readonly PI=3.14159",
363
+ "readonly -a CONST_ARRAY"
364
+ ]
365
+ },
366
+ {
367
+ "name": "return",
368
+ "description": "Return from a shell function",
369
+ "examples": [
370
+ "return 0",
371
+ "return 1"
372
+ ]
373
+ },
374
+ {
375
+ "name": "set",
376
+ "description": "Set or unset shell options and positional parameters",
377
+ "examples": [
378
+ "set -euo pipefail",
379
+ "set -- \"$@\" newarg"
380
+ ]
381
+ },
382
+ {
383
+ "name": "shift",
384
+ "description": "Shift positional parameters to the left",
385
+ "examples": [
386
+ "shift",
387
+ "shift 2"
388
+ ]
389
+ },
390
+ {
391
+ "name": "shopt",
392
+ "description": "Toggle shell optional behavior",
393
+ "examples": [
394
+ "shopt -s globstar",
395
+ "shopt -u dotglob",
396
+ "shopt extglob"
397
+ ]
398
+ },
399
+ {
400
+ "name": "source",
401
+ "description": "Execute commands from a file in the current shell",
402
+ "examples": [
403
+ "source ~/.bashrc",
404
+ ". ./env.sh"
405
+ ]
406
+ },
407
+ {
408
+ "name": "test",
409
+ "description": "Evaluate conditional expression",
410
+ "examples": [
411
+ "test -f /etc/passwd",
412
+ "test \"$a\" = \"$b\""
413
+ ]
414
+ },
415
+ {
416
+ "name": "trap",
417
+ "description": "Set actions to execute when signals are received",
418
+ "examples": [
419
+ "trap 'rm -f $tmpfile' EXIT",
420
+ "trap '' SIGINT",
421
+ "trap - SIGTERM"
422
+ ]
423
+ },
424
+ {
425
+ "name": "type",
426
+ "description": "Display information about command type",
427
+ "examples": [
428
+ "type ls",
429
+ "type -a python"
430
+ ]
431
+ },
432
+ {
433
+ "name": "typeset",
434
+ "description": "Declare variables and give them attributes (synonym for declare)",
435
+ "examples": [
436
+ "typeset -i count=0"
437
+ ]
438
+ },
439
+ {
440
+ "name": "ulimit",
441
+ "description": "Set or display user resource limits",
442
+ "examples": [
443
+ "ulimit -n 4096",
444
+ "ulimit -a"
445
+ ]
446
+ },
447
+ {
448
+ "name": "umask",
449
+ "description": "Display or set the file mode creation mask",
450
+ "examples": [
451
+ "umask 022",
452
+ "umask -S"
453
+ ]
454
+ },
455
+ {
456
+ "name": "unalias",
457
+ "description": "Remove alias definitions",
458
+ "examples": [
459
+ "unalias ll",
460
+ "unalias -a"
461
+ ]
462
+ },
463
+ {
464
+ "name": "unset",
465
+ "description": "Remove variable or function names",
466
+ "examples": [
467
+ "unset VAR",
468
+ "unset -f myfunc"
469
+ ]
470
+ },
471
+ {
472
+ "name": "wait",
473
+ "description": "Wait for a process to complete",
474
+ "examples": [
475
+ "wait $pid",
476
+ "wait"
477
+ ]
478
+ }
479
+ ],
480
+ "examples": [
481
+ "bash script.sh",
482
+ "bash -c 'echo Hello World'",
483
+ "bash -x debug-script.sh",
484
+ "bash -n syntax-check.sh",
485
+ "bash --norc --noprofile",
486
+ "bash -c 'for i in 1 2 3; do echo $i; done'",
487
+ "bash -l -i",
488
+ "bash --posix script.sh",
489
+ "bash -e -u -o pipefail script.sh",
490
+ "bash --rcfile custom_rc.sh"
491
+ ],
492
+ "relatedCommands": [
493
+ "sh",
494
+ "zsh",
495
+ "fish",
496
+ "dash",
497
+ "ksh",
498
+ "csh",
499
+ "tcsh",
500
+ "env",
501
+ "source"
502
+ ],
503
+ "contextEngine": {
504
+ "detectors": [
505
+ {
506
+ "name": "zsh_version",
507
+ "description": "Installed zsh version",
508
+ "command": "zsh --version 2>/dev/null",
509
+ "parser": "text",
510
+ "cacheFor": 3600,
511
+ "requiresCmd": "zsh"
512
+ },
513
+ {
514
+ "name": "current_shell",
515
+ "description": "Current user shell",
516
+ "command": "echo $SHELL",
517
+ "parser": "text",
518
+ "cacheFor": 3600,
519
+ "requiresCmd": "zsh"
520
+ },
521
+ {
522
+ "name": "zshrc_exists",
523
+ "description": "Check if .zshrc exists",
524
+ "command": "test -f ~/.zshrc && echo 'yes' || echo 'no'",
525
+ "parser": "text",
526
+ "cacheFor": 60,
527
+ "requiresCmd": "zsh"
528
+ },
529
+ {
530
+ "name": "oh_my_zsh",
531
+ "description": "Check if Oh My Zsh is installed",
532
+ "command": "test -d ~/.oh-my-zsh && echo 'installed' || echo 'not installed'",
533
+ "parser": "text",
534
+ "cacheFor": 300,
535
+ "requiresCmd": "zsh"
536
+ },
537
+ {
538
+ "name": "zsh_theme",
539
+ "description": "Current ZSH_THEME",
540
+ "command": "grep '^ZSH_THEME=' ~/.zshrc 2>/dev/null | head -1 | cut -d'\"' -f2",
541
+ "parser": "text",
542
+ "cacheFor": 120,
543
+ "requiresCmd": "zsh"
544
+ },
545
+ {
546
+ "name": "zsh_plugins",
547
+ "description": "Configured Oh My Zsh plugins",
548
+ "command": "grep -A20 '^plugins=(' ~/.zshrc 2>/dev/null | sed -n '/^plugins=(/,/)/p' | tr -d '()' | sed 's/plugins=//' | tr '\\n' ' '",
549
+ "parser": "text",
550
+ "cacheFor": 120,
551
+ "requiresCmd": "zsh"
552
+ },
553
+ {
554
+ "name": "fpath_dirs",
555
+ "description": "Number of fpath directories",
556
+ "command": "zsh -c 'echo ${#fpath}' 2>/dev/null",
557
+ "parser": "text",
558
+ "cacheFor": 300,
559
+ "requiresCmd": "zsh"
560
+ },
561
+ {
562
+ "name": "aliases_count",
563
+ "description": "Number of defined aliases",
564
+ "command": "zsh -ic 'alias | wc -l' 2>/dev/null",
565
+ "parser": "text",
566
+ "cacheFor": 60,
567
+ "requiresCmd": "zsh"
568
+ }
569
+ ]
570
+ }
571
+ }