oh-my-zsh 有很多好用的 plugins 可用。這邊筆記一下如何安裝以及管理 oh-my-zsh plugin。
第一步:使用 vi 編輯 ~/.zshrc
vi ~/.zshrc
第二步:檔中找 plugin 自段(直接打 plugin,vi 會直接跳到那一行)
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
第三步:把想增添的 plugin 填寫上
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
docker
)
第四步:重啟 iTerm 即可
文章參考出處:iTerm2 + zsh + oh-my-zsh The Most Power Full Terminal on macOS
oh-my-zsh 插件列表:出於 github plugins list
Leave a Reply