记录一次zsh的安装
# 安装zsh
sudo pacman -Sy zsh
# 设置zsh为默认shell
chsh -s /bin/zsh
# or
echo 'exec zsh' >>~/.bashrc
# 安装oh-my-zsh
## 使用 curl 安装
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
## 使用 wget 安装
sh -c "$(wget -O- https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
# 安装powerlevel10k主题
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
# 安装插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
使用grml 配置
omz太过臃肿,可以使用zimfw或者grml-config替代
下载grml-zsh-config配置文件
wget -O .zshrc https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
windows参考如下
一文搞定 Windows Terminal 设置与 zsh 安装【非WSL】 - 知乎 (zhihu.com)
使用zimfw
安装
curl -fsSL https://gitee.com/nanakura/zimfw-mirror/raw/main/install.zsh | zsh
本文作者:七つ一旋桜
本文链接:https://www.cnblogs.com/poifa/p/16109777.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步