简体   繁体   中英

Oh_My_ZSH! error on Mac: “.oh-my-zsh/oh-my-zsh.sh:66: command not found: rm”

out of the blue oh_my_zsh throws this when starting the terminal on "my" mac

/User/<...>/.oh-my-zsh/oh-my-zsh.sh:66: command not found: rm
compdump:136: command not found: mv
detect-clipboard:33: command not found: uname
/Users/<...>/.oh-my-zsh/plugins/git/git.plugin.zsh:235: command not found: awk
/usr/local/Cellar/powerlevel9k/0.6.7/functions/utilities.zsh:82: command not found: uname
prompt_context:13: command not found: whoami
prompt_background_jobs:1: command not found: wc
prompt_background_jobs:2: command not found: awk

breaking completely my .zshrc example (I assure you flutter is there)

which flutter                              ✔  2332  10:09:21
flutter not found
prompt_context:13: command not found: whoami
prompt_background_jobs:1: command not found: wc
prompt_background_jobs:2: command not found: awk

I cannot access my .zshrc through terminal

 ~  nano ~/.zshrc                                         ✔  2333  12:57:43
zsh: command not found: nano
prompt_context:13: command not found: whoami
prompt_background_jobs:1: command not found: wc
prompt_background_jobs:2: command not found: awk
 ~  sudo nano ~/.zshrc                                127 ↵  2334  12:58:30
zsh: command not found: sudo
prompt_context:13: command not found: whoami
prompt_background_jobs:1: command not found: wc
prompt_background_jobs:2: command not found: awk

also Finder => Press Cmd + Shift +. doesn't seem to work, any other way I can access it? or any suggestion about how to fix this? Thank you

Thank you @user1934428 and @chepner

I solved as follow

in a text editor:

open file: cmd + o

go to folder: cmd + shift + g

type: ~/

see hidden files: cmd + shift +.

select: .zshrc

fix the mess

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM