zsh terminal broken after ventura 13.4

I've just updated to the latest version of Ventura 13.4 and now the default terminal is broken. There's no color and every time I open a new tab or window, all the environment variables show up in the screen.


Has anyone had the same issue? How can I fix this?

MacBook Air (M1, 2020)

Posted on Jun 7, 2023 1:59 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 7, 2023 2:21 AM

Usually this means that some code that runs when you start zsh is causing problems.

There are a few files that run automatically, like ~/.zshrc

Sometimes stuff that gets installed adds content there to run every time the shell starts.


You can temporarily switch to a different shell, like bash, and confirm that the problem does not occur.


In Terminal->Settings->General, change "Shells open with" from the default to /bin/bash


Quit and restart Terminal.

Open a new window or tab. What happens?



6 replies
Question marked as Top-ranking reply

Jun 7, 2023 2:21 AM in response to doomsk

Usually this means that some code that runs when you start zsh is causing problems.

There are a few files that run automatically, like ~/.zshrc

Sometimes stuff that gets installed adds content there to run every time the shell starts.


You can temporarily switch to a different shell, like bash, and confirm that the problem does not occur.


In Terminal->Settings->General, change "Shells open with" from the default to /bin/bash


Quit and restart Terminal.

Open a new window or tab. What happens?



Jun 7, 2023 7:20 AM in response to doomsk

I can assure you that the update from any previous point release to Ventura 13.4 does not alter the ~/.zshrc file, nor bork the Terminal settings. Zsh is updated from 5.8 to 5.9 and I noticed no behavioral changes in Zsh or the Terminal afterward.


Are you attempting to run something in the Terminal > Settings > Default profile > Shell panel? It should be blank. Did you install Oh my Zsh plug-in?

Jun 7, 2023 2:33 AM in response to Luis Sequeira1


Last login: Wed Jun  7 11:31:02 on ttys000


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.


But I checked on .zshrc file and nothing changed. It is very odd. Not enough to break the zsh but enough to make it not suppress the environment variables and turn off syntax highlighting.



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.

zsh terminal broken after ventura 13.4

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