Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

christopher's avatar

Zsh Shell doesnt work

Yesterday i had to reinstall my OS. Now i installed Zsh but it does not work.

If i run

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

The System says that it already exist

You already have Oh My Zsh installed. You'll need to remove /Users/christopherdosin/.oh-my-zsh if you want to install

But if i open my terminal i am getting the default terminam and not Zsh

I also deleted the file again and installed Zsh again but no affect.

Cloning into '/Users/christopherdosin/.oh-my-zsh'...
remote: Counting objects: 637, done.
remote: Compressing objects: 100% (502/502), done.
remote: Total 637 (delta 14), reused 500 (delta 4), pack-reused 0
Receiving objects: 100% (637/637), 358.55 KiB | 0 bytes/s, done.
Resolving deltas: 100% (14/14), done.
Checking connectivity... done.
Looking for an existing zsh config...
Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh
Using the Oh My Zsh template file and adding it to ~/.zshrc
Copying your current PATH and adding it to the end of ~/.zshrc for you.
Time to change your default shell to zsh!
Changing shell for christopherdosin.
Password for christopherdosin: 
chsh: /usr/local/bin/zsh: non-standard shell
0 likes
11 replies
christopher's avatar

@bashy Seems not to be working. I did it for both my user and root

Christophers-MacBook-Pro:~ christopherdosin$ sudo chsh -s `which zsh`
Changing shell for root.
chsh: no changes made
Christophers-MacBook-Pro:~ christopherdosin$ chsh -s `which zsh`
Changing shell for christopherdosin.
Password for christopherdosin: 
chsh: /usr/local/bin/zsh: non-standard shell

still the same ugly white terminal :) Of course i closed the terminam and opened it again.

I also changed the PATH to my oh-my-zsh installation

ZSH=$HOME/.oh-my-zsh

also no affect.

And currently i only have my .profile for the default shell

cat ~/.profile
PATH=~/.composer/vendor/bin:$PATH
bstien's avatar

@hostianer I think you have to log out of your account and then back in for the changes to take effect, not just reopen your terminal.

bashy's avatar

"chsh: /usr/local/bin/zsh: non-standard shell" means it's probably not the right one.

You can test it by doing this at the prompt

/usr/local/bin/zsh

It should load the shell for that session.

It could be elsewhere

chsh -s /bin/zsh
bashy's avatar

Not sure on that, checked what theme it's loading? Tried changing it and reloading shell?

christopher's avatar

Mh .. yes i changed the theme to "cloud". The only thing which changed is the little cloud icon on the left.

But still the white window.

I closed the terminal several times.

bashy's avatar

Without knowing what you did with the backup files (may be corrupt) I can't say. Have you tried installing it again fresh then using backed up files once it's working? I know you said that folder but it obviously didn't install properly then either.

michaeldyrynda's avatar

Did you restore settings from your old device? Chances are it moved your home folder in place, which has your ~/.oh-my-zsh config (directory) copied across. Move or delete it from your home directory and try installing zsh again.

Zhibo's avatar

"chsh: /usr/local/bin/zsh: non-standard shell" means it's probably not the right one."

check the file '/etc/shells' and execute "echo which zsh >> /etc/shells"

Please or to participate in this conversation.