These are the series of commands I entered that cause the problem.
brew install bash
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells
chsh -s /usr/local/bin/bash
Now when I start my terminal, I get this.
Last login: Sun Apr 7 14:40:48 on ttys008
login: /usr/local/bin/bash: No such file or directory
[Process completed]
I can't write to the terminal unless I got to Shell->New Command and then type in "\bin\bash"
Anyone know a solution to this?
From System PreferencesHold the Ctrl key, click your user account's name in the left pane, and select “Advanced Options.” Click the “Login Shell” dropdown box and select “/bin/bash” to use Bash as your default shell or “/bin/zsh” to use Zsh as your default shell. Click “OK” to save your changes.
Mac OS X Shells Mac OS X comes with the Bourne Again SHell (bash) as the default user shell and also includes the TENEX C shell (tcsh), the Korn shell (ksh), and the Z shell (zsh). bash, ksh, and zsh are compatible with sh, the original Bourne shell.
The "System Preferences" option did not work for me cause there wasn't any "Advanced Options" within "Users & Groups" (For reference: I am running Monterey 12.2). The following worked for me:
/usr/local/bin/bash: No such file or directory
.Command
+ ,
which should open the terminal preferences.
Select the Command (complete path)
option for the Shells open with:
choice.
Enter the value as /bin/bash
or /bin/zsh
based on your preference.
Close and reopen the terminal. You should now have a working terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With