CentOS安装zsh终端——记录

$ 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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在CentOS 7上进行源码安装Zsh,可以按照以下步骤进行操作: 1. 首先,确保已安装所需的依赖项。您需要安装GCC编译器和make工具。可以使用以下命令进行安装: ``` yum install -y gcc make ``` 2. 下载Zsh的源码包。可以使用wget命令从SourceForge下载最新的Zsh源码包,命令如下: ``` wget -O zsh.tar.xz https://sourceforge.net/projects/zsh/files/latest/download --no-check-certificate ``` 3. 解压源码包。使用以下命令将源码包解压到当前目录: ``` tar -xf zsh.tar.xz ``` 4. 进入解压后的目录。使用以下命令进入Zsh源码目录: ``` cd zsh-* ``` 5. 配置和编译Zsh。执行以下命令来配置和编译Zsh: ``` ./configure make ``` 6. 安装Zsh。使用以下命令来安装Zsh: ``` make install ``` 完成这些步骤后,Zsh将成功安装到您的CentOS 7系统中。您可以通过运行`zsh`命令来启动Zsh。如果您想将Zsh设置为默认的Shell,可以使用以下命令: ``` chsh -s /usr/local/bin/zsh ``` 请注意,这是一种通过源码安装Zsh的方法。如果您更喜欢使用包管理器进行安装,可以使用`yum`命令安装Zsh: ``` yum install -y zsh ``` 但这将安装的是预编译的Zsh版本,而不是通过源码进行编译安装的版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [centos普通用户安装zsh](https://blog.csdn.net/shitou_12/article/details/127900917)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Centos7-Linux安装zsh和oh-my-zsh(内含国内安装方法)](https://blog.csdn.net/qimowei/article/details/119517167)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值