Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X refuses to setting fish as default shell(installed via Homebrew) #989

Closed
tiye opened this issue Sep 7, 2013 · 10 comments
Closed

OS X refuses to setting fish as default shell(installed via Homebrew) #989

tiye opened this issue Sep 7, 2013 · 10 comments

Comments

@tiye
Copy link

tiye commented Sep 7, 2013

➤➤ chsh -s /usr/local/bin/fish
Changing shell for jiyinyiyong.
Password for jiyinyiyong:
chsh: /usr/local/bin/fish: non-standard shell

While it works when I use the pkg which installed fish at /usr/bin/fish.

@siteshwar
Copy link
Contributor

Is /usr/local/bin/fish listed in /etc/shells file ?

@tiye
Copy link
Author

tiye commented Sep 7, 2013

@siteshwar After installed that pkg package for Mac, it does.
I didn't check /etc/shells before... I'll check again later.

@tiye
Copy link
Author

tiye commented Sep 7, 2013

It works how. My mistake, I didn't notice I should modify /etc/shell manully..
Maybe it's due to the super long output from brew install fish.
Thanks, closing it.

@tiye tiye closed this as completed Sep 7, 2013
@jitendravyas
Copy link

i m alsi having same problem. what to do?

@ridiculousfish
Copy link
Member

@jitendravyas You must add the line /usr/local/bin/fish to /etc/shells

@TimothyBramlett
Copy link

TimothyBramlett commented Jun 5, 2017

Solved the problem for me also. For anyone else who encounters this I had to add /usr/local/bin/fish to /etc/shells and then I had to re-run the command:

chsh -s /usr/local/bin/fish

After that, fish was now the default shell for OS X Terminal!

@Kurt29
Copy link

Kurt29 commented Sep 16, 2017

but why is fish in that location? and not in /bin/ like the other shells?
I installed zsh over brew too, and it is in /bin/

@zanchey
Copy link
Member

zanchey commented Sep 16, 2017

The version of zsh in /bin/zsh is shipped with OS X; if you install from Homebrew, it will be in /usr/local/bin/zsh like fish.

$ /usr/local/bin/zsh --version
zsh 5.4.1 (x86_64-apple-darwin15.6.0)
$ /bin/zsh --version
zsh 5.0.8 (x86_64-apple-darwin15.0)

@geoffmacintosh
Copy link

So that's a bit confusing. By default, macOS has bash, zsh and a few others pre-installed in /bin/. Homebrew doesn't ever install to /bin/, so you'll find an out-of-date copy of zsh at /bin/zsh and the brew version in /usr/local/bin/zsh.

@Kurt29
Copy link

Kurt29 commented Sep 16, 2017

Oh, that actually makes sense.
Didn’t notice because I had zsh over brew too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants