thasmto's blog

フロントエンドエンジニアやってます。プログラマーとして学んだことや考えていることを投稿するブログです。

Fish shellを導入した時の手順メモ

Fish インストール

brew install fish

iterm2起動時のシェルをfishに変更

  1. ターミナルでwhich fishを実行して、fish実行ファイルの場所を確認
  2. iterm2 → preferences → profiles → general → command
  3. Custom Shellを選択
  4. 1で確認したfish実行ファイルのパスを設定

powerlineインストール

brew install python
pip3 install powerline-status

fontをインストール

git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts

iterm2でフォントを設定

iTerm2 → Preferences → Profiles → Text → Font → Change Font → Meslo LG M Regular for Powerline
iterm2を再起動する

fisher インストール

curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish    

テーマインストール

fisher install oh-my-fish/theme-agonister

config.fishにテーマの設定を記述

~/.config/fish/config.fishファイルに以下を追記

set fish_theme agnoster

参考