1.安装基本工具
sudo apt update && sudo apt upgrade -y
sudo apt install zsh git curl -y
2.设置默认终端
chsh -s /bin/zsh
3.安装zsh
通过下列任一方式安装:
Method | Command |
---|---|
curl | sh -c "$(curl -fsSL https://install.ohmyz.sh/)" |
wget | sh -c "$(wget -O- https://install.ohmyz.sh/)" |
fetch | sh -c "$(fetch -o - https://install.ohmyz.sh/)" |
国内curl镜像 | sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)" |
国内wget镜像 |
|
4.下载自己喜欢的主题
sudo wget -O $ZSH_CUSTOM/themes/bira.zsh-theme https://cdn.haoyep.com/gh/leegical/Blog_img/zsh/bira.zsh-theme
5.修改.zshrc,设置为自己喜欢的主题
将配置文件中的ZSH_THEME设置为bira。想要看最终效果,可以查看各主题的截图(主题截图)
标签:https,curl,sh,install,wget,debian12,zsh,ohmyzsh From: https://www.cnblogs.com/merrynuts/p/18292905