Hide the name Mac-ulu and username in Terminal - macOS

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.

Passionate about technology, I enjoy writing on StealthSettings.com since 2006. I have a rich experience in operating systems: macOS, Windows, and Linux, as well as in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, PrestaShop).

How to » iHowTo » iHowTo - macOS » Hide the name Mac-ulu and username in Terminal - macOS

1 thought on “Hide name Mac-ulu and username in Terminal - macOS"

Leave a Comment