Dev Life
·1 min read·↗

How to hide computer name in OSX terminal

Main cover illustration for article: How to hide computer name in OSX terminal
Summarize with AI:

I love to have a clean terminal, the name of the computer is a piece of information not relevant to read every single time.

Terminal without the computer name
Terminal without the computer name

I'm still using the bash shell.

echo "export PS1='$ '" >> ~/.bash_profile
. ~/.bash_profile

For zsh users add the following line into the .zshrc.

PS1="%n$ "

:)

Part of the Dev Life Series

Reflections on career, soft skills, productivity, and the human side of programming.

View Entire Series

Related Articles

Share this article

If you found this guide helpful, consider sharing it with your team or fellow developers.


Real Software. Real Lessons.

I share the lessons I learned the hard way, so you can either avoid them or be ready when they happen.

User avatar
User avatar
User avatar
User avatar
+13K

Join 13,800+ developers and readers.

No spam ever. Unsubscribe at any time.