Go to Terminal Preferences on your mac.
Select your profile/theme from the left hand pane.
Enter the following text in Run command textbox:
export PS1="\$"; clear;
![](https://studyraft.com/wp-content/uploads/2022/09/image-36-1024x305.png)
Close the Preferences window.
Open a new Terminal window and you will see that username/computer name be hidden/removed in the shell. It will look like this:
![](https://studyraft.com/wp-content/uploads/2022/09/image-35.png)