hyper
hyper copied to clipboard
Bash on Windows - Set default startup directory
Here is my settings:
shell: 'C:\\Windows\\System32\\bash.exe',
// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
// by default ['--login'] will be used
shellArgs: ['--login'],
The startup directory is the Windows' user's home directory, not the linux user's home directory (cd ~). How can I change it?
You can always add a cd to your ~/.bash_profile!
Change ['--login'] to ['~', '--login'].
this ['--login'] to ['~', '--login'] didn't work for me. Perhaps because I'm using zsh, so I had for now to do the cd business in .zshrc... not great but it works.