Vj floyd
Vj floyd

Reputation: 31

I accidentally delete zsh from /bin folder in Mac

I delete the zsh binary from bin folder , so when i try to change my shell i get this :

chsh: WARNING: shell '/bin/zsh' does not exist

I don't know how to reinstall zsh shell and MacOs come with zsh by default.

Upvotes: 0

Views: 5974

Answers (2)

Vj floyd
Vj floyd

Reputation: 31

I fixed that problem using mac tools. I invested only about 30 min of my time whith the reinstall option. It's obviously there is a way to generate a zsh binary, but I find easy reinstall the osx due to Osx come by default with the zsh binary and brew install doesn't install the zsh binary. On the other hand, there must a way to install zsh from scratch but I think find the correct way would take more time

Upvotes: 0

Francisco
Francisco

Reputation: 4110

The easiest thing would be to install zsh using brew (which will install it in /usr/local/bin/zsh) and then symlink it to /bin/zsh.

There are obvious more ways to fix this, but this seems (to me) to be the simplest.

Upvotes: 1

Related Questions