@oclif/core 4.8.2 → 4.8.3
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.
- package/lib/config/config.js +4 -2
- package/package.json +1 -1
package/lib/config/config.js
CHANGED
|
@@ -215,10 +215,12 @@ class Config {
|
|
|
215
215
|
if (SHELL) {
|
|
216
216
|
shellPath = SHELL.split('/');
|
|
217
217
|
}
|
|
218
|
-
else if (this.windows &&
|
|
218
|
+
else if (this.windows &&
|
|
219
|
+
(process.title.toLowerCase().includes('powershell') || process.title.toLowerCase().includes('pwsh'))) {
|
|
219
220
|
shellPath = ['powershell'];
|
|
220
221
|
}
|
|
221
|
-
else if (this.windows &&
|
|
222
|
+
else if (this.windows &&
|
|
223
|
+
(process.title.toLowerCase().includes('command prompt') || process.title.toLowerCase().includes('cmd'))) {
|
|
222
224
|
shellPath = ['cmd.exe'];
|
|
223
225
|
}
|
|
224
226
|
else if (this.windows && COMSPEC) {
|