How to change the Login Shell on Mac OS X from bash to zsh?
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Mysterious Puzzle
--
Chapters
00:00 How To Change The Login Shell On Mac Os X From Bash To Zsh?
00:27 Accepted Answer Score 121
00:43 Answer 2 Score 64
01:41 Answer 3 Score 13
01:50 Answer 4 Score 1
02:01 Thank you
--
Full question
https://superuser.com/questions/362372/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #shell
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Mysterious Puzzle
--
Chapters
00:00 How To Change The Login Shell On Mac Os X From Bash To Zsh?
00:27 Accepted Answer Score 121
00:43 Answer 2 Score 64
01:41 Answer 3 Score 13
01:50 Answer 4 Score 1
02:01 Thank you
--
Full question
https://superuser.com/questions/362372/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #shell
#avk47
ACCEPTED ANSWER
Score 121
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.
ANSWER 2
Score 64
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.
ANSWER 3
Score 13
Or:
sudo dscl . change /users/$USER UserShell /bin/bash $(which zsh)
ANSWER 4
Score 1
If anyone wondering same problem happens on macOS Sierra and following command allowed me to change shell without problems:
chpass -s /usr/local/bin/zsh
