Change the global config directory for Windows OS
This commit is contained in:
parent
3c41d59842
commit
a9be0a3d10
@ -236,7 +236,13 @@ function changeYAMLValue(data, key, value) {
|
|||||||
*/
|
*/
|
||||||
function getGlobalDirectory() {
|
function getGlobalDirectory() {
|
||||||
|
|
||||||
return di.path.join(process.env.APPDATA || process.env.HOME, '.terminalizer');
|
// Windows
|
||||||
|
if (typeof process.env.APPDATA != 'undefined') {
|
||||||
|
return di.path.join(process.env.APPDATA, 'terminalizer');
|
||||||
|
}
|
||||||
|
|
||||||
|
return di.path.join(process.env.HOME, '.terminalizer');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user