Start the shell with the correct cwd on Windows (#1016)

* fixes zeit/hyper#1011

* more succinct fix for zeit/hyper#1011
This commit is contained in:
Zach Buttram 2016-11-18 12:27:38 -08:00 committed by Matheus Fernandes
parent 271a221979
commit fb2f1d8e1e

View file

@ -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 shell = cfg.shell;
const shellArgs = cfg.shellArgs && Array.from(cfg.shellArgs); const shellArgs = cfg.shellArgs && Array.from(cfg.shellArgs);