从 iTerm2 打开原子编辑器 window 显示 - 'zsh: command not found: atom'

Opening the atom editor from iTerm2 window is displaying - 'zsh: command not found: atom'

刚刚用 oh-my-zsh 安装了 iTerm2,并且已经安装了 atom..

我已经克隆了我的 git 存储库以在旧笔记本电脑上使用,但出于某种原因,oh-my-zsh 没有按照通常的命令打开我的 atom。

➜  LandingPage git:(master) atom .
zsh: command not found: atom

尝试通过访问和更改 .zshrc 文件来纠正它,但权限被拒绝。有人有什么建议吗?

谢谢,

蚂蚁

根据 this question/answer 看来 atom 可能没有为 atom 命令创建符号 link。

这与 zsh 无关 -- 第一个参数只是告诉你 shell,后面的信息是错误。

例如,在我的机器(没有 atom)上,当 运行 zsh 并尝试用 atom 打开一个文件时,我得到 zsh: command not found: atom。当我用 bash 尝试相同的命令时,我得到 bash: atom: command not found.

如果上述 link 不起作用,请告诉我!希望这对您有所帮助。