网站制作学习网Linux→正文:树莓派 使用zsh oh-my-zsh
字体:

树莓派 使用zsh oh-my-zsh

Linux 2025/6/12 22:27:58  点击:不统计


 在树莓派中使用zsh ,并安装oh myzsh 
首先克隆 文件,这里使用国内镜像
cd 回车
git clone https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git ~/.oh-my-zsh
 
其次 复制命令行 到当前命令并作为隐藏文件夹
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
 
再次, 更改默认zsh命令
chsh -s $(which zsh)
启用zsh直接运行
zsh
 
 
补充安装美化插件
 
# 语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
 
# 命令提示
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
 
然后 编辑.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
然后运行,使zsh插件生效。
source ~/.zshrc
 

·上一篇:重新安装树莓派系统 >>    ·下一篇:树莓派扩展虚拟内存 >>
推荐文章
最新文章