Dany Paredes
Dany Paredes | Javascript / Web

Dany Paredes | Javascript / Web

How to hide computer name in OSX terminal

Photo by Dmitry Ratushny on Unsplash

How to hide computer name in OSX terminal

Make terminal clean

Dany Paredes's photo
Dany Paredes
·Feb 9, 2022·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Listen to this article

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

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$ "

:)

 
Share this