当前位置: 首页 > 工具软件 > oh-my-git > 使用案例 >

配置oh-my-zsh

郎祯
2023-12-01

第一步:安装oh-my-zsh

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

复制.zshrc,注意复制前一定要拷贝环境变量

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

更改默认shell

chsh -s /bin/zsh

安装插件

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting

修改配置文件

plugins=(  git
           zsh-autosuggestions
           zsh-syntax-highlighting
           z)
source $ZSH/oh-my-zsh.sh
 类似资料: