Reputation: 2195
I have installed zsh with homebrew, and am now trying to install oh-my-zsh.
% brew install zsh
...
Warning: zsh-5.3.1 already installed
That installs zsh, and sets my $SHELL
variable to /usr/local/bin/zsh
% which zsh
/usr/local/bin/zsh
% echo $SHELL
/usr/local/bin/zsh
But when I try and install oh-my-zsh from the github source, I'm told that zsh has not been installed.
% curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
Zsh is not installed! Please install zsh first!
Looking at the install script, it appears that zsh has not been added to my etc/scripts
file.
% grep zsh /etc/shells | wc
0 0 0
Why is homebrew not "correctly" installing zsh? How can I update my /etc/shells
file to include the necessary information?
Upvotes: 3
Views: 2755
Reputation: 2195
After looking at the contents of my /etc/shells file, it appeared that something had damaged that file. Very strange.
Rewriting the /etc/shells to the following fixed the issue for me.
/usr/local/bin/zsh
/bin/bash
Then I can change shells as I would expect and installing oh-my-zsh works.
Upvotes: 4