Mac OSX shell will not change
Worth pointing out that you have to actually add whatever new shell you've put in that isn't there on a vanilla box to the /etc/shells file (or somesuch similar)... You didn't post the whole text from your chsh attempt, and the snippet you did put down at least leaves that door open.
Good Luck.
Related videos on Youtube
Chris Edwards
Updated on September 18, 2022Comments
-
Chris Edwards over 1 year
I'm trying to get ZSH as my default shell, I've installed using the installer from the oh-my-zsh project and it all installs fine, but I cannot change it to be the default shell:
When I
echo $SHELL
it gives "/bin/zsh
",However
ps -p $$
seems to suggestbash
(although I have seen this suggestzsh
even when it isn't)I've also tried changing it in the Accounts → Advanced settings → Startup shell and in the Terminal preferences.
Using
chsh -s /bin/zsh
says "No changes made..." i.e. it also thinkszsh
is in use.
I can switch to zsh manually by typing
zsh
or/bin/zsh
, just can't change it to default and that is rather annoying.Any ideas?
-
Gordon Davisson almost 13 yearsTry
echo bash=${BASH_VERSION:-not running}, zsh=${ZSH_VERSION:-not running}
to find out for sure what you're running. -
Spiff almost 13 yearsWhat version of Mac OS X are you running? What does
id -P
report at the end of the line? Did you really installzsh
at/bin/zsh
? Any chance you have something in a shell startup file that invokes bash? And, sorry to ask this, but did you know that changing your default shell will NOT automatically take effect in already-open Terminal windows? -
Kolja about 12 yearsIt could be that you hadn't installed git when you ran the oh-my-zsh installation script. The error message is inconspicuous - in comparison to the flashy "oh my zsh is now installed" which you get even if it wasn't. That lion comes with zsh installed just added to the confusion...
-
Chris Edwards almost 13 yearsThanks for your response! That was all I was getting from the chsh, its had been solved now anyway, I shall post the answer now.
-
HikeMike almost 13 yearsPlease mark this answer accepted once it's possible, so the system can consider this question answered.