Oh My Zsh

GitHub:

sh -c "**$(**curl -fsSL <https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh**>)**"

Gitee ( 国内镜像 )

sh -c "**$(**curl -fsSL <https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh**>)**"

安装完成后设置

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
# 开启插件
plugins=(git)
plugins=(docker)
plugins=(kubectl)

# zsh设置
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See <https://github.com/ohmyzsh/ohmyzsh/wiki/Themes>
#ZSH_THEME="robbyrussell"
# 主题
ZSH_THEME="random"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

autosuggestions 自动补全

zsh-autosuggestions

brew install zsh-autosuggestions

echo "source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc

highlighting 高亮

zsh-syntax-highlighting


brew install zsh-syntax-highlighting

echo "source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc