zinit

빠르고 유연한 zsh 플러그인 매니저

특징

  • 간단하게 zsh 플러그인을 관리
  • 다른 플러그인 매니저에 비해 굉장히 빠름

설치하기

1sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"

사용법

~/.zshrc 에 다음과 같이 적어 플러그인을 불러올 수 있다.

1zinit load  <repo/plugin> # Load with reporting/investigating.
2zinit light <repo/plugin> # Load without reporting/investigating.

Example

1# Plugin history-search-multi-word loaded with investigating.
2zinit load zdharma-continuum/history-search-multi-word
3
4# Two regular plugins loaded without investigating.
5zinit light zsh-users/zsh-autosuggestions
6zinit light zdharma-continuum/fast-syntax-highlighting
7
8# Snippet
9zinit snippet https://gist.githubusercontent.com/hightemp/5071909/raw/

Theme Example

1# Load powerlevel10k theme
2zinit ice depth"1" # git clone depth
3zinit light romkatv/powerlevel10k
4
5# Load pure theme
6zinit ice pick"async.zsh" src"pure.zsh" # with zsh-async library that's bundled with it.
7zinit light sindresorhus/pure
8
9# Load starship theme
10zinit ice as"command" from"gh-r" \ # `starship` binary as command, from github release
11          atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \ # starship setup at clone(create init.zsh, completion)
12          atpull"%atclone" src"init.zsh" # pull behavior same as clone, source init.zsh
13zinit light starship/starship

댓글