diff --git a/lib/add-cli-config-to-app.js b/lib/add-cli-config-to-app.js
index <HASH>..<HASH> 100644
--- a/lib/add-cli-config-to-app.js
+++ b/lib/add-cli-config-to-app.js
@@ -1,7 +1,7 @@
 var path = require('path');
 var fs = require('fs');
 var rc = require('rc');
-var userHome = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
+var userHome = (process.platform === "win32" ? process.env.USERPROFILE : process.env.HOME );
 var configFilePath = path.join(userHome, '.sqlpadrc');
 
 module.exports = function (app) {
get user home path like rc