fish shell のインストール手順 [macOS 編]

macOS に fish shell をインストールしたので、その手順をご紹介します。

fish shell

fish インストール

brew install fish
which fish
/opt/homebrew/bin/fish

ログインシェルとして有効なファイルのフルパス一覧

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

ログインシェルを fish へ変更

sudo -e /etc/shells

して、

/opt/homebrew/bin/fish

を追記します。

chsh -s /opt/homebrew/bin/fish

Terminal.app を再起動して fish になっていたら完了です。

以上、macOS に fish shell をインストールした、現場からお送りしました。