Linux安装On My Zsh

Linux安装On My Zsh

Debian/Ubuntu 安装 zsh

# 更新软件源

sudo apt update && sudo apt upgrade -y

# 安装 zsh git curl

sudo apt install zsh git curl -y

RedHat/Alma Linux/Centos/Rocklinux 安装zsh

# 更新软件源

sudo yum update -y

# 安装 zsh git curl

sudo yum install zsh git curl -y

或使用dnf包管理

# 更新软件源

sudo dnf update -y

# 安装 zsh git curl

sudo dnf install zsh git curl -y

安装 on-my-zsh

curl 形式

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"


wget 形式

sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"


如果以上安装on 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)"

Comment

华计科技: 中华自主研发设计

华计科技为您提供咨询服务,IT技术支持和项目开发: (+86) 156 2654 0671

联系我们