bash端末:コマンドが見つかりません&zsh端末:見つかりません

bash端末:コマンドが見つかりません&zsh端末:見つかりません

誰かがそれを説明し、解決策を助けることができますか?

Bash端末で見た内容は次のとおりです。

bash: rbenv: command not found
bash: eva: command not found
bash: rbenv: command not found
bash: Source: command not found

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
MacBook-Pro-de-ta:~ ta$ chsh -s /bin/zsh
Changing shell for ta.
Password for ta: 
chsh: no changes made
MacBook-Pro-de-ta:~ ta$ 

zsh 端末に表示される内容は次のとおりです。

/Users/ta/.zshrc:3: /usr/local/opt/ruby/bin:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/ruby/bin:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ta/.rvm/gems/ruby-2.7.4/bin:/Users/ta/.rvm/gems/ruby-2.7.4@global/bin:/Users/ta/.rvm/rubies/ruby-2.7.4/bin:/usr/local/opt/ruby/bin:/Users/ta/.rvm/bin not found 

詳細は:

ta@MacBook-Pro-de-ta ~ % zsh --version
zsh 5.8 (x86_64-apple-darwin21.0)
ta@MacBook-Pro-de-ta ~ % bash --version 
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.
ta@MacBook-Pro-de-ta ~ % /Users/ta/.bash_profile
zsh: permission denied: /Users/ta/.bash_profile
ta@MacBook-Pro-de-ta ~ % /Users/ta/.zsh_profile
zsh: no such file or directory: /Users/ta/.zsh_profile

source ~/.bash_profile
/Users/ta/.bash_profile:6: command not found: rbenv
/Users/ta/.bash_profile:6: command not found: eva
/Users/ta/.bash_profile:7: command not found: rbenv
/Users/ta/.bash_profile:11: command not found: Source

ベストアンサー1

おすすめ記事