---
title: "How to hide computer name in OSX terminal"
date: "2022-02-09"
slug: "how-to-hide-computer-name-in-osx-terminal"
author: "Dany Paredes"
canonical: "https://danywalls.com/how-to-hide-computer-name-in-osx-terminal"
description: "I love to have a clean terminal, the name of the computer is a piece of information not relevant to read every single time.\nI'm still using the bash shell. echo \"export PS1='$ '\" >> ~/.bash_profile . ~/.bash_profile\nFor zsh users add the following ..."
---

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](/images/posts/how-to-hide-computer-name-in-osx-terminal/_88_e74Nz_10123.png)

I'm still using the bash shell.

```bash
echo "export PS1='$ '" >> ~/.bash_profile
. ~/.bash_profile
```
For zsh users add the following line into the .zshrc.

```bash
PS1="%n$ "
```
:) 

