Terminal is unable to quit /Cant install Homebrew
I have tried to install Homebrew last night to get started with some coding. After pasting in the command from brew.sh it ran for about 45 minutes. It then said it was complete and I had to enter 2 commands (I don't remember which ones) to give it some permissions. I entered the commands and then Terminal stopped working.
I couldn't enter any commands, it just says "Last login: Mon Feb 7 09:49:59 on ttys000". (Date changes whenever I quit, but that also doesn't really work, it says "closing this window will terminate the running process cat". Even if I press "terminate" and then reopen Terminal it is still not working.
I have tried force-quitting, wiping as many files as I could, I am trying to update my mac to Monterey, I have restarted and shut down twice each and I have no idea how to either fix the problem or completely stop the entire thing and then retry installing brew.
Please help Ive been stuck on this for more than an actual full day...