其他分享
首页 > 其他分享> > 记录一次zsh的安装

记录一次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

标签:git,https,记录,zsh,sh,com,powerlevel10k,安装
来源: https://www.cnblogs.com/poifa/p/16109777.html