批里批里 (゜-゜)つ🍺 干杯~|

七つ一旋桜

园龄:4年2个月粉丝:6关注:3

记录一次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 中国大陆许可协议进行许可。

posted @   七つ一旋桜  阅读(94)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起