Linux终端oh my zsh

发布 : 2023-03-21 分类 : shell 浏览 :

Linux终端美化 oh my zsh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
yum install zsh

#查看是否安装成功
chsh -l

#切换shell
chsh -s $(which zsh)

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

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

#自动提示
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

#错误提示
git clone https://gitee.com/xiaoqqya/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

修改配置
vim ~/.zshrc

1
2
3
4
5
6
7
8
9
10
#主题模板
ZSH_THEME="fino-time"

#插件
plugins=(
git
docker
zsh-autosuggestions
zsh-syntax-highlighting
)

配置生效
source ~/.zshrc

本文作者 : zhouinfo
原文链接 : http://blog.zhouinfo.site/2023/03/21/Linux%E7%BB%88%E7%AB%AFoh-my-zsh/
版权声明 : 本博客所有文章除特别声明外,均采用 CC Apache License 2.0 许可协议。转载请注明出处!
留下足迹