Alex Alex - 1 year ago 233
Bash Question

Set Default Shell in Cygwin

I've been using Cygwin for quite a while now. I now want to switch to fish from bash. Everyone is saying that you should use

chsh -s /usr/bin/fish
, but for some reason,
does not work for me. Trying to modify my
file doesn't work either, and neither does changing my

I really don't understand what's going on. Could someone please help me?

Answer Source

I randomly meet the same problem, and now I providing my solution for you.

0- Open cygwin by mintty.exe

1- Build passwd file manually (mkpasswd)

$mkpasswd > /etc/passwd

2- Change default shell in passwd file

$vim /etc/passwd

3- Restart mintty.exe

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download