LoginSignup
69
62

More than 5 years have passed since last update.

OSXでfish shellを使う

Last updated at Posted at 2014-06-12

インストール

homebrewでインストールできる

brew install fish

デフォルトのシェルを変更する
whichコマンドでfish本体のある場所を調べて
chsh -sで指定する

which fish
chsh -s /usr/local/bin/fish

chshしてchsh: /usr/local/bin/fish: non-standard shellと怒られる場合は
vimなどで/etc/shellsを開いてファイル末尾に/usr/local/bin/fishを追記するとよい

ターミナルを再起動するとシェルがfishになっているはず

oh-my-fish

fishは素の状態でもかなり補完効いてくれたり便利なんだけど
色々設定したい場合、zshのoh-my-zshのような設定を管理するフレームワークのoh-my-fishがある

導入は簡単で公式サイトの以下のコマンドを叩けばよい

curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish

テーマ変える

fishの設定ファイルは.bashrc.zshrcとかではなくて
$HOME/.config/fish/config.fishというファイル

ここから好きなテーマ選んでconfig.fishの該当箇所を以下のように書き換える
fishfaceとかfish感出ていいと思う

config.fish
# Theme
# set fish_theme robbyrussell
set fish_theme fishface

fish.png

かわいい

69
62
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
69
62