0

I cannot run any command in my terminal. This is what is shown on the screen:

-zsh(8651,0x108442dc0) malloc: can't allocate region
:*** mach_vm_map(size=18446744072790204416, flags: 100) failed (error code=3)
-zsh(8651,0x108442dc0) malloc: *** set a breakpoint in malloc_error_break to debug
/Users/phongvu/.zshrc:117: fatal error: out of memory

[Process completed]

Please help me!

3
  • 1
    What's on line 117 of your .zshrc? Jul 1, 2020 at 14:44
  • @JordiNebot This is it: cat << EOF >> ~/.zshrc
    – agentp
    Jul 1, 2020 at 15:07
  • 1
    @agentp : Don't tell me that you are going to append to your .zshrc while the .zshrc iteslf is being processed????? Jul 2, 2020 at 7:33

1 Answer 1

0

I figured it out. I installed VSCode in path with these lines:

cat << EOF >> ~/.zshrc
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF

and it installed path every time I use "code ." command which makes my zsh shell out of memory

1
  • Why do you need to append a line that already exists to .zshrc? Aug 8, 2020 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.