My /etc/zshrc has the unsurprising lines:
This becomes
When I open a terminal window. The problem is that computername is not my computer name, but the name of a different Mac on my network. I also don’t have a ~/.zshrc file that would set it explicitly.
So the question is: What sets the variable %m? Once I know that, I can maybe correct whatever the corresponding configuration file is.
Code:
# Default prompt
PS1="%n@%m %1~ %# "
This becomes
Code:
userID@computername ~ %
When I open a terminal window. The problem is that computername is not my computer name, but the name of a different Mac on my network. I also don’t have a ~/.zshrc file that would set it explicitly.
So the question is: What sets the variable %m? Once I know that, I can maybe correct whatever the corresponding configuration file is.