hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Bash on Windows - Set default startup directory

Open shawnlan opened this issue 9 years ago • 3 comments

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?

shawnlan avatar Jul 12 '17 22:07 shawnlan

You can always add a cd to your ~/.bash_profile!

jack-guy avatar Jul 16 '17 04:07 jack-guy

Change ['--login'] to ['~', '--login'].

gluons avatar Jan 07 '18 08:01 gluons

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.

omartin2010 avatar Apr 24 '19 15:04 omartin2010