Closed5

Zsh環境をPreztoからSheldonに移行する

3w36zj63w36zj6

Installation

curl --proto '=https' -fLsS https://rossmacarthur.github.io/install/crate.sh \
    | bash -s -- --repo rossmacarthur/sheldon --to ~/.local/bin
.zshrc
eval "$(sheldon source)"
3w36zj63w36zj6

Initializing

以下のコマンドで~/.config/sheldon/plugins.tomlにSheldonの設定ファイルが作成される。

sheldon init --shell zsh
3w36zj63w36zj6

Adding a plugin

sheldon add base16 --github chriskempson/base16-shell

以下のコマンドでプラグインを同期できる。

sheldon lock
3w36zj63w36zj6

遅延読み込み

[templates]
defer = "{{ hooks?.pre | nl }}{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}{{ hooks?.post | nl }}"

[plugins.zsh-defer]
github = "romkatv/zsh-defer"

[plugins.zsh-syntax-highlighting]
github = "zsh-users/zsh-syntax-highlighting"
apply = ["defer"]
このスクラップは2ヶ月前にクローズされました