LoginSignup
7
7

More than 5 years have passed since last update.

oh-my-fishのプラグイン分割による設定変更

Last updated at Posted at 2015-06-04

5月の末にoh-my-fishの大きな仕様変更がありました。
https://github.com/oh-my-fish/oh-my-fish/commit/91f37c43ce0ae091564656c57cc09d54558d4e6d

従来プラグインやテーマははメインレポジトリに入っていたのですが、
テーマ、プラグインごとのレポジトリに分割されるようになりました。

organization化もしています。
https://github.com/oh-my-fish

ランディングページはここの予定みたいですが、まだアクセスできません。
https://www.oh-my-fish.com/
仮に入れた値だったようです。

config.fish(分割前)
set fish_path $HOME/src/github.com/bpinto/oh-my-fish
set fish_theme gitstatus
set fish_plugins z emoji-clock
set fish_custom $HOME/.config/fish/custom
. $fish_path/oh-my-fish.fish
config.fish(分割後)
set fish_path $HOME/src/github.com/bpinto/oh-my-fish
. $fish_path/oh-my-fish.fish
Theme "gitstatus"
Plugin "z"
Plugin "emoji-clock"

いままでは
. $fish_path/oh-my-fish.fish
を実行する前にfish_theme,fish_pluginsをsetしていました。

今後は
. $fish_path/oh-my-fish.fish
のあとに関数Theme,Pluginをつかってテーマやプラグインを有効にします。
指定したプラグインが入っていない場合は
omf install
でインストールします。

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