$ yum install zsh
$ sh -c "$(wget -O- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
[root@VM-16-13-centos ~]$ sh -c "$(wget -O- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
--2021-04-25 17:07:36-- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
Resolving gitee.com (gitee.com)... 212.64.62.183
Connecting to gitee.com (gitee.com)|212.64.62.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘STDOUT’
- [ <=> ] 9.71K --.-KB/s in 0s
2021-04-25 17:07:36 (104 MB/s) - written to stdout [9942]
Cloning Oh My Zsh...
Cloning into '/root/.oh-my-zsh'...
fatal: unable to access 'https://github.com/ohmyzsh/ohmyzsh.git/': Empty reply from server
Error: git clone of oh-my-zsh repo failed
[root@VM-16-13-centos ~]# sh -c "$(wget -O- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
--2021-04-25 17:10:51-- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
Resolving gitee.com (gitee.com)... 212.64.62.183
Connecting to gitee.com (gitee.com)|212.64.62.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘STDOUT’
- [ <=> ] 9.71K --.-KB/s in 0s
2021-04-25 17:10:51 (158 MB/s) - written to stdout [9942]
Cloning Oh My Zsh...
Cloning into '/root/.oh-my-zsh'...
remote: Enumerating objects: 1202, done.
remote: Counting objects: 100% (1202/1202), done.
remote: Compressing objects: 100% (1169/1169), done.
remote: Total 1202 (delta 20), reused 1111 (delta 15), pack-reused 0
Receiving objects: 100% (1202/1202), 842.32 KiB | 3.13 MiB/s, done.
Resolving deltas: 100% (20/20), done.
Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc.
Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
Changing the shell...
Changing shell for root.
Shell changed.
Shell successfully changed to '/usr/bin/zsh'.
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ....is now installed!
Before you scream Oh My Zsh! please look over the ~/.zshrc file to select plugins, themes, and options.
• Follow us on Twitter: https://twitter.com/ohmyzsh
• Join our Discord server: https://discord.gg/ohmyzsh
• Get stickers, shirts, coffee mugs and other swag: https://shop.planetargon.com/collections/oh-my-zsh
CentOS安装zsh终端——记录
最新推荐文章于 2024-04-01 14:23:57 发布