msys2 / msys2-launcher

Helper for launching MSYS2 shells

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I set the default shell?

teh-hippo opened this issue · comments

Sorry if this is really simple - I can't work out with the launcher how to set my default shell.

I had it previously, but my PC was wiped and can't work out how I did it.

When I create a shortcut to msys64.exe with '/usr/bin/zsh' it doesn't pick up that I'm trying to use a different shell - and instead launches with the 'sh' wrapper.

Thanks,
Michael

commented

Did you see #3 ?

Brilliant... That's almost certainly not how I did it last time; much less hacky. Thanks for the quick response.

Thanks, @hut8.

@mikesena, would you prefer if the way to change the default shell was mentioned in the README?

The easiest way is to append the following to your .bashrc. It invokes fish (or your shell of choice) after your bash is finished doing its thing, but then checks whether we already started fish (or your shell of choice) before starting it. So, that way you can easily drop back into bash from fish (or your shell of choice) without having to remember to do bash --norc

https://gist.github.com/voidptr/d77a5a527ed2cc06cd277df9ec366f32