个人兴趣折腾,有问题欢迎一起来讨论,
把你遇到的任何困惑,欢迎留在评论区,
我们一起来解决鸭
( ー̀εー́ )
参考安装文档如下:
# 更新包管理器并安装 Zsh
pkg update
pkg install zsh
# 安装 Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 安装 Powerlevel10k 主题
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
# 安装 zsh-autosuggestions 插件
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
# 安装 zsh-syntax-highlighting 插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# 编辑 .zshrc 配置文件
nano ~/.zshrc
# 修改 ZSH_THEME 为 powerlevel10k
# ZSH_THEME="powerlevel10k/powerlevel10k"
# 修改插件配置,添加 zsh-autosuggestions 和 zsh-syntax-highlighting
# plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# 保存并退出编辑器
# 如果需要安装 Nerd Fonts,访问 https://www.nerdfonts.com/ 下载字体
# 在 Termux 设置中选择适合的 Nerd Fonts 字体
# 配置 Powerlevel10k 主题
p10k configure
# 使配置生效
source ~/.zshrc