From fb2f1d8e1eae29e131b440885840f019d213c9c5 Mon Sep 17 00:00:00 2001 From: Zach Buttram Date: Fri, 18 Nov 2016 12:27:38 -0800 Subject: [PATCH] Start the shell with the correct `cwd` on Windows (#1016) * fixes zeit/hyper#1011 * more succinct fix for zeit/hyper#1011 --- app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index bfa7dbdd..a152029d 100644 --- a/app/index.js +++ b/app/index.js @@ -180,7 +180,7 @@ app.on('ready', () => installDevExtensions(isDev).then(() => { } }); - rpc.on('new', ({rows = 40, cols = 100, cwd = process.env.HOME, splitDirection}) => { + rpc.on('new', ({rows = 40, cols = 100, cwd = process.env.HOME || process.env.HOMEPATH, splitDirection}) => { const shell = cfg.shell; const shellArgs = cfg.shellArgs && Array.from(cfg.shellArgs);