/用户 ///.zshrc:1:找不到命令:shell

发布于 2025-02-13 18:30:34 字数 1541 浏览 1 评论 0原文

我对编程很新。由于某种原因,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

能怎样 2025-02-20 18:30:34

我遇到了同样的问题,并在看到你们的讨论后解决了它。

shell路径=“/opt/homebrew/opt/ a>/libexec/bin:$ {path}“


删除vim文本编辑器中的'shell'。

path =“/opt/homebrew/opt/ >/libexec/bin:$ {path}“


在课程中,我认为元不应该放灰色代码块中的“外壳”。令人困惑。

ZSH

shell源〜/.zshrc

zsh壳

源〜/.zshrc

I met the same problem, and solved it after saw you guys' discussion.

shell PATH="/opt/homebrew/opt/[email protected]/libexec/bin:${PATH}"

Remove 'shell' in the Vim text editor.

PATH="/opt/homebrew/opt/[email protected]/libexec/bin:${PATH}"

In the course meterial, I think Meta should not put 'shell' in the grey block of codes. It is confusing.

Zsh

shell source ~/.zshrc

Zsh Shell

source ~/.zshrc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文