/用户 ///.zshrc:1:找不到命令:shell
我对编程很新。由于某种原因,Shell在我的终端(MAC OS),ITERM2或VSCODE终端中不起作用。
这是打开终端时我遇到的错误: 最后登录:TTYS001的7月7日17:27:20 /USERS/CALEREEVES/.ZSHRC:1:找不到命令:Shell /USERS/CALEREEVES/.zshrc:source:75:没有这样的文件或目录:/EH-my-zsh.sh calereeves@cales-macbook-pro〜%
运行源〜/.zsh时,它将无法使用。但是,当我使用vim〜/.zshrc时,这就是拉起的东西。我被告知在元视频开发人员课程之后使用的壳路径。这就是我所改变的一切,我什至不记得原始的。
shell PATH="/opt/homebrew/opt/[email protected]/libexec/bin:${PATH}" # If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
# export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
"~/.zshrc" 101L, 3928B
无论哪种方式,都不知道为什么壳首先不工作。任何帮助将不胜感激。我什至无法运行Python壳。
I'm new-ish to programming. For some reason shell isn't working in my terminal (mac os), iTerm2 or vscode terminals.
This is the error I get when opening a terminal:
Last login: Thu Jul 7 17:27:20 on ttys001
/Users/calereeves/.zshrc:1: command not found: shell
/Users/calereeves/.zshrc:source:75: no such file or directory: /oh-my-zsh.sh
calereeves@Cales-MacBook-Pro ~ %
When I run source ~/.zsh it won't work. But when I use vim ~/.zshrc this is what pulls up. The shell path on top I was told to use following the Meta Back-End Developer course. That's all that I've changed, and I don't even remember what was there originally.
shell PATH="/opt/homebrew/opt/[email protected]/libexec/bin:${PATH}" # If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
# export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
"~/.zshrc" 101L, 3928B
Either way, not sure why the shell isn't working in the first place. Any help is greatly appreciated. I can't even run the python shell.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,并在看到你们的讨论后解决了它。
删除vim文本编辑器中的'shell'。
在课程中,我认为元不应该放灰色代码块中的“外壳”。令人困惑。
ZSH
zsh壳
I met the same problem, and solved it after saw you guys' discussion.
Remove 'shell' in the Vim text editor.
In the course meterial, I think Meta should not put 'shell' in the grey block of codes. It is confusing.
Zsh
Zsh Shell