Terminal zsh:killed

Hi,

I'm looking for someone who can help me troubleshoot the terminal,

On my M1 Macbook with Ventua 13.4

When I open the terminal it says the following (before I do anything else)

zsh: killed mkdir -m 700 -p "$SHELL_SESSION_DIR"

Then when I try to run any code, again everything comes back with zsh: killed

I've looked at a lot of forums/videos/articles on the internet, but I just haven't managed to solve the problem yet, if anyone has any ideas please let me know

Thanks in advance for all your help!

MacBook Air 13″, macOS 13.4

Posted on Jun 7, 2023 2:16 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 7, 2023 2:50 AM

Similar questions

16 replies

Jun 7, 2023 4:17 AM in response to bianka147

The shell is still telling you that you have not entirely setup the Zsh shell yet. However, the first thing I would remove would be that homebrew eval statement in your ~/.zshrc file. I have been using the homebrew package manager for several years and at no time has there ever been that eval statement present, which is invoking the shellenv commands that are exploding on you…


Next, I would manually enter the following in the Terminal if it is an Intel MacBook Air:


export PATH=".:/usr/local/bin:${PATH}"



and the following (accounting for the /opt installation locale for homebrew) on an Apple Silicon Mac:


export PATH=".:/usr/local/bin:/opt/homebrew/bin:${PATH}"


Now, finish setting up the default Zsh shell (your admin password will not echo here):


sudo chsh -s /bin/zsh


Then, you create a new ~/.zshrc file with the PATH and PS1 prompts by copy/pasting the following HERE script into the Terminal and then pressing return to run it.


<<"EOF" > ~/.zshrc
export PATH=".:/usr/local/bin:${PATH}"
PS1="%m: %~ %% "
EOF


and once that is done, enter the following command:


source ~/.zshrc


Each time that you launch the Terminal, it will read that ~/.zshrc file.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal zsh:killed

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.