I accidentally changed my default macOS z shell to bash shell. How could I change back to the default macOS shell.
I wrongly entered
cd ~
/bin/bash
I accidentally changed my default macOS z shell to bash shell. How could I change back to the default macOS shell.
I wrongly entered
cd ~
/bin/bash
Running /bin/bash
within zsh isn't different from running nano
, it starts the new binary "on top" of the running zsh. So to get "back" to zsh you just need to quit the newly started bash shell by typing exit
.