Mac OS X : properly change shell when using zsh from darwinports/macports

Posted by Antonin AMAND Wed, 06 Sep 2006 20:01:00 GMT

If like me you use a up to date zsh shell under Mac OS X installed via DarwinPorts (which change name to MacPorts) you may want to set it as your default shell.

To do this in a proper way (not by changing it in Terminal.app Preferences) you should proceed as following.

$ sudo vi /etc/shells
# add the following line : 
/opt/local/bin/zsh
$chsh
# and change /bin/bash to /opt/local/bin/zsh