Hyper: macOS: Set default directory?

Created on 24 Apr 2018  路  4Comments  路  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate

Issue


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

screen shot 2018-04-24 at 11 16 02 am

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)

Most helpful comment

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

All 4 comments

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
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: #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. !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cilice picture cilice  路  3Comments

rauchg picture rauchg  路  3Comments

juicygoose picture juicygoose  路  3Comments

weabot picture weabot  路  3Comments

leo picture leo  路  3Comments