Tiny Leopard Tip: Switch To Z-Shell Permanently

by Noah Gift

Leopard uses dscl, directory services command line, tool to manage most things important. Here is how you switch to Z-Shell:

sudo dscl /Local/Default -create /Users/ngift UserShell /bin/zsh

8 Comments


2007-10-31 07:59:20
'chsh -s /bin/zsh' still works too.
Noah Gift
2007-10-31 08:07:37
I originally used chsh to change the shell for my terminal, but it didn't also change it for X11 strangely. I suppose dscl is the universal bridge to modify any local directory attribute now, so in the long run it is probably the best tool to use for everything from adding mount records to modifying managed preferences, either locally or connected to a directory system.
toto
2007-10-31 08:08:56
There is even a GUI for this (!): Ctrl-Click your icon in the user preferences pane and choose "Advanced Options…".
Elias Pipping
2007-10-31 08:37:50
what's wrong with chsh(1)?
Elias Pipping
2007-10-31 08:39:21
nvm, should've read the comments first.
Robert
2007-10-31 11:14:12
1 - Why switch?


2 - Does it cause any problems?

Noah Gift
2007-10-31 12:07:48
Robert/I wrote an article here about it here .


Basically, Z-Shell has very nice auto-completion stuff built in. I find myself doing many less keystrokes per day. Z-Shell is also even more configurable than bash, while retaining all of the good features of bash.


It doesn't cause any problems to change your user shell, as this won't affect the system shell.

Adam
2007-11-17 21:11:40
"I originally used chsh to change the shell for my terminal, but it didn't also change it for X11 strangely"


Sounds like you might have a more serious issue. I used chsh(1) in Terminal.app and the settings were effective in X11. A check of Advanced Options in User Preferences also showed the change as well.


My advice: 1) Do a clean install, or, 2) Do an archive and install.