LoginSignup
1
0

fish shellをアンインストールする

Last updated at Posted at 2024-02-23

なぜ消すか

補完のためにfishを使っていたのですが、warpの登場により使う理由がなくなりました。使いやすかったよ、ありがとうfish。

現在のシェルを確認

echo $SHELL

fishでなければ次のログインシェルをzshに変更は不要です

ログインシェルをzshに変更

chsh -s /bin/zsh

ログインシェルからfishを削除

sudo -e /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
/usr/local/etc/fish # こいつを消す

fishをアンインストール

brew uninstall fish

警告で以下が表示されるので指定された2つのファイルは手動で削除します

Warning: The following fish configuration files have not been removed!
If desired, remove them manually with `rm -rf`:
  /usr/local/etc/fish
  /usr/local/etc/fish/config.fish

残ったゴミファイルを削除

rm -rf  /usr/local/etc/fish /usr/local/etc/fish/config.fish

設定ファイルも手動で消します

rm -rf  ~/.config/fish

fishが消えていることを確認

which fish
fish not found

消えていることが確認できました。使いやすかったよ、ありがとうfish。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0