How to change the Login Shell on Mac OS X from bash to zsh?
You can change user shell by the following command:
chsh -s /bin/zsh
Note: To change it for a non-standard shell, make sure its path has been added to /etc/shells
file.
Funnily enough, the same method you link to in your question still works in OS X Lion through Sierra (10.12). The only difference: The preference pane is named Users & Groups instead of Accounts.
- Open "System Preferences" → "Users & Groups".
- Unless the lock icon is already unlocked, click the lock icon and authenticate yourself.
- Context-click on a user in the list of user names (hold down the Control key while clicking, or right-click on a right-handed two button mouse).
- In context menu, choose "Advanced Options…".
- Choose "Login shell" in the sheet that appears.
The note at the top of the "Advanced Options" screen claims you have to restart for the change to take effect, but you really just need to log out and back in again.
Or:
sudo dscl . change /users/$USER UserShell /bin/bash $(which zsh)