[Solved] Installed OhMyZsh but its loading Bash

Introduction

If you have recently installed OhMyZsh but it is loading Bash instead, you may be feeling frustrated and confused. Don’t worry, this is a common issue and can be easily solved. In this article, we will discuss the steps you can take to get OhMyZsh up and running. We will also discuss some of the common causes of this issue and how to prevent it from happening in the future. By the end of this article, you should have a better understanding of how to get OhMyZsh working properly.

Solution

If you have installed OhMyZsh but it is loading Bash instead, you can try the following steps to resolve the issue:

1. Check your default shell:
Run the command ‘echo $SHELL’ in your terminal. If it returns ‘/bin/bash’, then your default shell is Bash.

2. Change your default shell:
Run the command ‘chsh -s /bin/zsh’ in your terminal. This will change your default shell to Zsh.

3. Restart your terminal:
Close and reopen your terminal to apply the changes.

4. Check if OhMyZsh is loading:
Run the command ‘echo $SHELL’ in your terminal. If it returns ‘/bin/zsh’, then your default shell is now Zsh and OhMyZsh should be loading.


Two choices:

1) Change the user login default shell to zsh:

chsh -s /bin/zsh

See the man page for details:

man chsh

2) Keep the login default shell, but assign zsh to one of your iTerm’s profile (assuming you want to do that to the default profile)

Open iTerm Preferences

Select your default profile (the star’d one)

Go to General tab (property page)

In the Command section, change the selection from Login Shell to Command

Type/Assign zsh in the Command field.

Any time you create a new iTerm shell using this profile, you will get zsh instead of your login shell (i.e. bash). You can have create multiple profiles and assign zsh, bash, etc… to the Command…, your choice.

0

solved Installed OhMyZsh but its loading Bash


If you have installed OhMyZsh but it is still loading Bash, there are a few steps you can take to resolve the issue. First, make sure that you have installed OhMyZsh correctly. You can do this by running the command zsh --version in your terminal. If the version number is displayed, then you have installed OhMyZsh correctly.

Next, you need to make sure that OhMyZsh is set as your default shell. To do this, run the command chsh -s $(which zsh). This will set OhMyZsh as your default shell. You may need to log out and log back in for the changes to take effect.

Finally, you need to make sure that OhMyZsh is properly configured. To do this, open the .zshrc file in your home directory. This file contains the configuration settings for OhMyZsh. Make sure that the ZSH_THEME variable is set to the theme you want to use. You can also customize other settings in this file.

Once you have completed these steps, OhMyZsh should be loading correctly. If you are still having issues, you can try reinstalling OhMyZsh or looking for help on the OhMyZsh forums.