Well. Today I have come across an annoying buy-in the terminal that will pick up the reverse IP-lookup as a host-Name rather than actual host-Name of PC. Although it was a small thing – it took me a while before realizing what was going on.
To avoid you from all the hassle, I have actually decided to write this article up:
So if you are getting something like this:
192-168-1-111:~/desktop/Project Web development/project-files
And you wanted something like this:
Rohit’s MacBook Air:intro-to-node rohitbhurtel$
You came to the right place. All you have to do to fix this annoying problem is: Just copy the code below and paste it to your Terminal:
-get computer name):\W \u\$ ‘
Ta-da it should be fixed already by now. Thank you for visiting.