It is not a very stressful thing, but for some users who frequently work in Terminal on macOS / OS X, displaying the name Macand username take up space on the command line.
The first line that appears when you open TerminalIt is informative. It displays the date that occurred last authentication system.
Last login: Sun Jan 8 20:51:55 on ttys000
In the second line, which is maintained on each command line, are displayed in Terminal: username system, computer name (MacBook Pro), current folder (~) and username (Stealth). It wouldn't be annoying, but as I said at the beginning, it takes up unnecessary space. The only useful information in this "info" is the name of the current folder.
To eliminate / to hide user name, computer name and user community must follow some simple steps:
1. open Terminal > Preferences > the tabShell".
2. Under "Startups"Check the option"Run command”And we add the line:
PS1="\W \$"; clear;
3. After adding the above line to be executed at launch, close the application Terminal.
4. Reopen the application.
Now the screen from Terminal it is more "clean". Username, username and computer name no longer appear at the beginning of command lines.
Remove / Hide MacOS Computer Name & Username from Terminal command line.
The tutorial was made macOS Sierra 10.12.2 / MacBook Pro.
Thank you it has served me, applied in mac mini cone Mac manager