记录一次zsh的安装

2022/4/6 23:22:36

本文主要是介绍记录一次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


这篇关于记录一次zsh的安装的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程