Is it possible to set the default directory? Adding another index to shellArgs only results in a runtime error.

Uncaught Exception:
TypeError: Cannot read property 'resize' of undefined
at Server.Window.rpc.on (/Applications/Hyper.app/Contents/Resources/app.asar/ui/window.js:146:14)
at emitOne (events.js:115:13)
at Server.emit (events.js:210:7)
at Server.ipcListener (/Applications/Hyper.app/Contents/Resources/app.asar/rpc.js:33:11)
at emitTwo (events.js:125:13)
at EventEmitter.emit (events.js:213:7)
at WebContents.<anonymous> (/Applications/Hyper.app/Contents/Resources/electron.asar/browser/api/web-contents.js:266:13)
at emitTwo (events.js:125:13)
at WebContents.emit (events.js:213:7)
I have a same question for Windows. How do I set the default startup directory for Windows? I am not using any custom shell.
Changing default directory depends on which shell do you use.
For bash: execute only one time : echo "cd ~/code" >> ~/.bashrc
For zsh: execute only one time: echo "cd ~/code" >> ~/.zshrc
(And edit this line in rc files if you want to change this directory later)
For Windows (CMD or PowerShell): see this issue: https://github.com/zeit/hyper/issues/2794
BTW, we definitely need to add a new config entry for this. Issue created: #3000
you can set the workingDirectory config key for this.
Changing default directory depends on which shell do you use.
For
bash: execute only one time :echo "cd ~/code" >> ~/.bashrc
Forzsh: execute only one time:echo "cd ~/code" >> ~/.zshrc
(And edit this line in rc files if you want to change this directory later)For Windows (CMD or PowerShell): see this issue: #2794
BTW, we definitely need to add a new config entry for this. Issue created: #3000
This worked fine for me, Im on Mac Catalina & 'zsh' THX. !
Most helpful comment
Changing default directory depends on which shell do you use.
For
bash: execute only one time :echo "cd ~/code" >> ~/.bashrcFor
zsh: execute only one time:echo "cd ~/code" >> ~/.zshrc(And edit this line in rc files if you want to change this directory later)
For Windows (CMD or PowerShell): see this issue: https://github.com/zeit/hyper/issues/2794
BTW, we definitely need to add a new config entry for this. Issue created: #3000