Macbook Pro Terminal Showing IP Location Instead of My Device or Localhost Name After @ Symbol
Hi, my name is Antonius, and right now I have been using my Macbook Pro M1 Pro since July 2022. I am a computer science student and I kind of doing software engineering and development things.
Since the first time I used my MBP, I have been considering why my terminal is showing my IP instead of my Mac Name.
When opening the terminal, what is shown is
username@192 ~ %
Which what others shown is
username@name's MBP ~ %
or
username@name's MacBook Pro ~ %
When I do some research, 192.xxxxxxxxx is my IP Address. I have been curious about how to change this into my LocalHost Name, I have tried several ways including changing the name in System Preferences >> Sharing >> Change LocalHost Name and Device Name.
Some people suggest to create some .profile or .bashprofile, but it didn't work. Even when I opened the Terminal Preferences, the Root Directory name is not my Device Name but written with the IP Address.
Functionally, the terminal works and still can do many things, but in my own perspective, it is a little bit disturbing.
So if anyone knows or could help me with some solutions that won't ruin my Mac or need too many computation stuff to be done, let me know and share your experience
MacBook Pro 16″, macOS 12.5