The Terminal app uses bash by default. And I don't want to change it. However I want to configure iTerm2 with zshell and oh my zsh. and I don't want bash on it. The instructions I checked online, make zshell default in both apps.
2 Answers
If your default system shell is bash
, your Terminal should start with it. You can check it on General tab under Terminal Preferences. Should look like the following:
If bash isn't your default shell, you can change it by typing:
chsh -s /bin/bash
To configure iTerm2 with zsh
you have to open Preferences and change the command on General tab on your default profile. You have to enter /bin/zsh
or whatever shell you want.
To install oh-my-zsh type the following:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
-
3Should it actually be
chsh -s /bin/bash
(-s, not -c)? I getchsh: illegal option -- c
...– XMLMar 25, 2016 at 9:56 -
Perhaps
/bin/zsh -l
in the iTerm2 configuration would be closer to what the OP had in mind? BTW, what's the point in doing achsh
? The OP said that he already does have bash as default login shell on his platform anyway. Dec 27, 2022 at 10:02 -
Update Dec 2022
You need to go to:
Preferences
Profiles
tab- Select
Command
in the drop down - Enter
/bin/zsh/
in the text input