Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Set default directory? #2929

Closed
2 tasks done
kevinSuttle opened this issue Apr 24, 2018 · 4 comments
Closed
2 tasks done

macOS: Set default directory? #2929

kevinSuttle opened this issue Apr 24, 2018 · 4 comments

Comments

@kevinSuttle
Copy link

kevinSuttle commented Apr 24, 2018

  • I am on the latest Hyper.app version
  • 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)
@saikrishnav
Copy link

I have a same question for Windows. How do I set the default startup directory for Windows? I am not using any custom shell.

@chabou
Copy link
Contributor

chabou commented May 10, 2018

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

@LabhanshAgrawal
Copy link
Collaborator

you can set the workingDirectory config key for this.

@TheKasjel
Copy link

TheKasjel commented Aug 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants