Daebarkee
Daebarkee

Reputation: 683

oh-my-zsh does not start on mac

I installed oh-my-zsh as suggested in http://ohmyz.sh/. FYI,

[~]$ zsh --version
zsh 5.0.8 (x86_64-apple-darwin15.0)
[~]$ echo $SHELL
/bin/zsh
[~]$ ls .oh-my-zsh/
LICENSE.txt  cache        lib          oh-my-zsh.sh templates    tools
README.md    custom       log          plugins      themes

Only when I type "zsh" then I can see the oh-my-zsh prompt like:

[~]$ zsh
➜  ~ 

Also, I tried to change my default shell to zsh:

[~]$ chsh -s /bin/zsh
Changing shell for myUserName.
Password for myUserName: 
chsh: no changes made

How can I use directly oh-my-zsh whenever I start mac terminal?

Upvotes: 15

Views: 27613

Answers (7)

itsraghz
itsraghz

Reputation: 1017

I tried all the suggestions but nothing worked on my Macbook Pro (M2). I removed the ~/.oh-my-zsh folder in my home directory, and reinstalled zsh via the commands given below in order.

This finally had worked for me. Hope this helps someone.

Upvotes: 0

Vijay Panwar
Vijay Panwar

Reputation: 273

I am on M3 mac and having the same issue, I have to change /bin/zsh to /bin/bash and its start working for me.

Steps:

Terminal/Prefences/General and change the Shells open with.

Upvotes: 0

Anthony
Anthony

Reputation: 69

Run the following in the terminal:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Upvotes: 3

Gwamaka Charles
Gwamaka Charles

Reputation: 1695

I had a similar issue but I resolved it by executing the command chsh -s /bin/zsh in the terminal,then navigated to

Terminal -> Preferences -> General window

and changed the Shells open with: option to Default login shell while the command (complete path) set to /bin/zsh.This should solve your problem.

Upvotes: 2

Ari Ross
Ari Ross

Reputation: 75

Also, I tried to change my default shell to zsh: [~]$ chsh -s /bin/zsh

try

chsh -s $zsh

that worked fine for me

Upvotes: 1

Daebarkee
Daebarkee

Reputation: 683

Not only in System Pref>User and Group>...>User profile's shell settings, but also in Mac's terminal>Preference>ChosenProfile>Shell section, I had to change /bin/bash to /bin/zsh. after that, it works! Thank you, @RemyJ!

Upvotes: 18

Remy J
Remy J

Reputation: 729

You have to change the default shell to zsh.
To do so use the following command.

chsh -s /bin/zsh
restart your terminal

I took it from here.
These were the steps I followed when I installed zsh.
I hope it will help you as well.

Upvotes: 8

Related Questions