zsh killing some commands but not others
I recently upgraded my laptop to 12.7. Since then, the terminal hasn't been working for me. Upon opening the terminal, I see the following two lines:
zsh: killed mkdir -m 700 -p "$SHELL_SESSION_DIR"
zsh: killed
Using commands such as ls, mkdir also results in zsh: killed ls or zsh: killed mkdir. This is the case with a few other commands but notably not homebrew or git. I've had homebrew and git for a long time and I don't think those are the issue since those commands work. In addition commands such as cd and echo also work. Can someone help me figure out how to make my terminal work again?
MacBook Pro 14″, macOS 12.7