加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

安装oh-my-zsh时出错

发布时间:2020-12-13 23:55:57 所属栏目:Linux 来源:网络整理
导读:我在安装oh-my-zsh时遇到错误,这样做: wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh 但最后我得到了: /usr/bin/env: zsh: No such file or directorysh: source: not found 我究竟做错
我在安装oh-my-zsh时遇到错误,这样做:

wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

但最后我得到了:

/usr/bin/env: zsh: No such file or directory
sh: source: not found

我究竟做错了什么 ?

机器:Ubuntu 10.10

解决方法

对于在ubuntu上使用oh-my-zsh时可能遇到问题的其他人,这里是从这个要点中得到的解决方案: https://gist.github.com/1498393

首先安装zsh:

apt-get install zsh

然后使用zsh安装oh-my-zsh:

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

然后将shell更改为zsh

chsh -s `which zsh`

然后确保重新启动终端会话,无需重启

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读