I just opened a new tab in iTerm2, and the prompt is now
unknown48437c7db712:~alecwilson $
.
In the tab that was already open, I checked, and the prompt used to be tests-MacBook-Air:~ $
. It's asking me to provide my RSA key for github but doesn't seem to be misbehaving otherwise. Any idea what is going on?
UPDATE: Weirdly enough, I did some work in my text editor waiting for an answer, then reopened iTerm2 (the 3rd time I've restarted it), and the prompt is back to one that makes sense, although for some reason, now it's tests-Air:~ alecwilson
, rather than the original prompt. Still no idea what happened.
Still unclear on how this happened, it's stopped occurring since I moved to zsh and cleaned up all my dotfiles, but for anyone who gets here in the future, changing the hostname of your computer then restarting the terminal app you are using does the trick.