We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5055384 commit 1593598Copy full SHA for 1593598
src/core.ts
@@ -59,7 +59,7 @@ const hook = createHook({
59
})
60
hook.enable()
61
62
-const context: Options = {
+const defaults: Options = {
63
[processCwd]: process.cwd(),
64
verbose: (global as any).ZX_VERBOSE ?? true,
65
env: process.env,
@@ -71,14 +71,14 @@ const context: Options = {
71
}
72
73
try {
74
- context.shell = which.sync('bash')
75
- context.prefix = 'set -euo pipefail;'
+ defaults.shell = which.sync('bash')
+ defaults.prefix = 'set -euo pipefail;'
76
} catch (err) {
77
// ¯\_(ツ)_/¯
78
79
80
function getStore() {
81
- return storage.getStore() || context
+ return storage.getStore() || defaults
82
83
84
export const $ = new Proxy<Shell & Options>(
0 commit comments