gpt4 book ai didi

zsh - 安装 oh-my-zsh 时出错

转载 作者:行者123 更新时间:2023-12-01 07:42:25 25 4
gpt4 key购买 nike

安装 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`

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

关于zsh - 安装 oh-my-zsh 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11362951/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com