How to configure the Terminal app with bash and iTerm2 with zshell and oh the zsh

bashitermterminalzsh

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.

Best Answer

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:

enter image description here

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.

some text here

To install oh-my-zsh type the following:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"