Change the Shell in Mac OS X Terminal
Tired of bash? Prefer ksh, tcsh, or sh? You can quickly change the default shell in Terminal app, in addition to changing a users default login shell for when logging in remotely with SSH or otherwise. Here’s how to do both.
Change Terminal Apps Default Shell in OS X
- Open Preferences from the Terminal menu, click the “Startup” tab
- Under “Shells open with” choose “Command (complete path)” and set the new shell
Change a User Default Login Shell in Mac OS X
You can also change the default shell through the command line itself using the chsh command, this will be necessary if you want the default shell to be different when logging in with SSH or telnet. You’ll need to authenticate each change:
chsh -s /bin/ksh
chsh -s /bin/tcsh
chsh -s /bin/bash
chsh -s /bin/sh
We covered the first part of this years ago and it hasn’t changed since, even with OS X Lion and OS X Mountain Lion.