カクカクしかじか

技術的なアレコレ

fishシェルにテーマを適用してカッコ良くする方法

今回やりたいこと

fishシェルにテーマを適用してカッコ良くしたい!

完成形

image.png

fish を入れる

fishが入っていない場合は、まずfishを入れます!

$ brew install fish

パッケージ管理ツール fisher を入れる

fishのパッケージ管理ツールも入れていきます!

github.com

$ curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 15372  100 15372    0     0   9598      0  0:00:01  0:00:01 --:--:-- 29224

fisher経由でテーマを入れてみる

fishをカッコ良くするテーマ ocean を入れてみます!

$ fisher add oh-my-fish/theme-ocean
created new fishfile in ~/.config/fish/fishfile
fetching https://codeload.github.com/oh-my-fish/theme-ocean/tar.gz/master
linking ~/.config/fish/functions/fish_prompt.fish
added 1 package in 2.63s

完成版

こんな感じでシェルが表示出来るようになったら終了です! image.png