Mac-Ulu Hide name and username in Terminal - MacOS

This is not a very stressful thing, but for some users who frequently work on the MacOS / OS X Terminal, displaying the Mac name and user name occupies 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), The current folder (~) and username (Stealth). There would be something disturbing, but as I said in the beginning, occupy unnecessary space. The only useful information from 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 > Tab "Shell"

2. under "Startup"Tick the option"Run command"And add the line:

PS1 = "\ w \ $"; clear;

3. After we add the line above to be executed launch, close Terminal.

4. Reopen the application.

Now in Terminal screen is "clean". Username, user name and computer name no longer appear at the beginning of the command line.

Remove / Hide MacOS Computer Name & Username from Terminal command line.

The tutorial was made MacOS Sierra 10.12.2 / MacBook Pro.

Mac-Ulu Hide name and username in Terminal - MacOS

About the author


Passionate about everything that means gadgets and IT, I write with pleasure from 2006 and I like to discover with you new things about computers and operating systems macOS, Linux, Windows, iOS and Android.

Leave a Comment