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 PortIt 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). It would not be disturbing, but as I said at first, it takes a lot of 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 Port > 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 gadget and IT, I am pleased to write on from 2006 and I love to discover new things about computers and macOS, Linux operating systems, Windows, iOS and Android.

Leave a Comment