记录一次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
posted @ 2022-04-06 21:55  七つ一旋桜  阅读(112)  评论(0)    收藏  举报