How can I configure zsh to be the default shell under Cygwin?

link|improve this question

50% accept rate
by the way this probably belongs on Superuser.com or Unix.stackexchange.com – slomojo Feb 22 '11 at 14:03
Well.. true. Anyone with the necessary permissions, please transfer it. – simao Feb 22 '11 at 22:49
feedback

migrated from stackoverflow.com Oct 28 '11 at 2:58

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 14 down vote accepted

Unless you're using cygwin as a multiuser environment (in which case use chsh as you would under a standard environment.)

Otherwise, you just change cygwin.bat to run zsh -l -i instead of bash --login -i and it will run as a login shell.  

Of course, if you want to run multiple shells from startup, just create a set of .bat files to load different shells. (sh, ksh, csh, fish etc)

Update...

I felt I should update this to provide info on doing this without chsh but still doing it on the Unix end. Edit the /etc/passwd file and replace occurrences of /bin/bash with /bin/zsh. (This is effectively what chsh would do, but this way you'd do it for all users in one go.)

link|improve this answer
feedback

This details how to setup csh as the default shell, but I think it should at least point you in the right direction.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.