fish shell Uninstallation Steps [macOS Edition]

Tadashi Shigeoka ·  Tue, June 7, 2022

I uninstalled fish shell from macOS, so I’ll introduce the steps.

fish shell

Background: fish Might Be More Difficult Than Expected?

I started using fish, but it doesn’t support nvm, and it seems like this kind of thing will increase in the future, so I decided to go back to zsh after all 😅

nvm and fish

Originally, nvm’s documentation contains the following note, indicating that nvm does not support fish and recommends using third-party tools. (The documentation introduces several tools)

Quote from: fish 環境にnvm + fish-nvmを導入した時のメモ | DevelopersIO

fish Uninstallation Steps

Change Login Shell to zsh

chsh -s /bin/zsh

List of Valid Shell Full Paths for Login Shell

cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/opt/homebrew/bin/fish

Remove fish from Login Shell

sudo -e /etc/shells

Then remove:

/opt/homebrew/bin/fish

brew uninstall fish

brew uninstall fish
which fish
fish not found

Above, I uninstalled fish shell from macOS.

That’s all from the Gemba.