diff --git a/utility.js b/utility.js index 3d02f42..1be2636 100644 --- a/utility.js +++ b/utility.js @@ -236,7 +236,13 @@ function changeYAMLValue(data, key, value) { */ 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'); + }