Ubunt下oh my zsh的安装与配置

2022-05-07 16:04:21 浏览数 (1)

Ubunt下oh my zsh的安装与配置

代码语言:javascript复制
sudo apt-get install zsh

chsh -s /bin/zsh

sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

git clone https://gitee.com/zhetianlab/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-autosuggestions

git clone https://gitee.com/lightnear/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-syntax-highlighting

sudo apt-get install autojump

vim ~/.zshrc

# plugins=(git),改为 plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# ZSH_THEME="xiong-chiamiov-plus" 修改主题

# 让配置生效
source ~/.zshrc

0 人点赞