Why does Mac OS Monterey killing all process in the terminal, even open terminal and write ls then is show every-time. zsh: killed ls same goes for some other commands like " ./gradlew uploadArchives", but all other commands like git is working fine that means Brew is installed and working.
Asked
Active
Viewed 2,958 times
2 Answers
1
I encountered the same issue in my Mac M1, I found that the path added using the path_helper was causing the issue in the file "/etc/zprofile".
I commented out
#if [ -x /usr/libexec/path_helper ]; then
# eval `/usr/libexec/path_helper -s`
#fi
Then added my own export PATH line
export PATH=$PATH:/usr/local/bin:/usr/bin:/sbin:/opt/homebrew/bin
This resolved the issue for me.

desertnaut
- 57,590
- 26
- 140
- 166

Prince Nishchal
- 31
- 4
0
I uninstalled all homebrew packages
Ran homebrew uninstall script to completely uninstall homebrew itself
Reinstalled homebrew
Reinstalled packages I want
Installed zsh via homebrew
ran chsh -s /opt/homebrew/bin/zsh
Opened new terminal
Issue is gone.

Devin Rhode
- 23,026
- 8
- 58
- 72
-
i did the same but issue is still there – Faraz Rasheed Mar 10 '22 at 10:59
-
I wouldn't be surprised if there's some extra-pedantic thing I did which turns out to have been necessary. This may be a useful resource: https://vineethbharadwaj.medium.com/m1-mac-switching-terminal-between-x86-64-and-arm64-e45f324184d9 – Devin Rhode Mar 10 '22 at 13:23