-
-
Notifications
You must be signed in to change notification settings - Fork 1
Using a custom shell
mvllow edited this page Jun 16, 2025
·
3 revisions
Recent versions of macOS now ship with zsh by default. There are several alternatives, but changing your default shell may potentially cause issues if you're not careful.
We can add a snippet to our .zshrc that checks for our desired shell, in this case "fish". If it exists, we execute fish within zsh.
if [ $(which fish) ]; then
SHELL=$(which fish)
[ -x $SHELL ] && exec $SHELL
fiAlternatively, replace your default shell.
echo $(which fish) | sudo tee -a /etc/shells
chsh -s $(which fish)