Replies: 2 comments
-
This is definitely unsupported. What you did is probably the easiest way to do it, but I don't know where you even got a
I guess https://github.com/git-for-windows/git/wiki/Install-inside-MSYS2-proper and then passing |
Beta Was this translation helpful? Give feedback.
0 replies
-
There are 2 ways to get zsh on git bash
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, i would like to change the default shell from bash to zsh. I couldn't find much info on this. At the moment i have added the following to the bottom of
"C:\Program Files\Git\etc\bash.bashrc"
to make bash start zsh for me.This works but i would like to know a way to load zsh directly by default, that would improve the prompt startup time on my low end machine as it wouldn't have to load multiple shells
MSYS2 has option to change default shell in a very easy/graceful manner as follows :
We can either set the login shell of everyone using our MSYS2 installation using nsswitch.conf or use mkpasswd -c to create an /etc/passwd entry that we can modify.
Since git bash is based on MSYS2, i expected this to work out but adding
db_shell: /usr/bin/zsh
in nsswitch.conf inside the /etc directory seems to have no effect unfortunately. Alternatively runningmkpasswd -c
doesn't seem to create any/etc/passwd
entryBeta Was this translation helpful? Give feedback.
All reactions