I wanted to know if there is a way to remove all the name that appears in the terminal, it uses a lot of space. I have it like this:
You can follow these steps:
To change the Primary hostmame, example: mimac.domain.com
sudo scutil --set HostName <new host name
To change the Bonjour hostname, example: mimac.local
sudo scutil --set LocalHostName <new host name>
To change the name of the computer.
sudo scutil --set ComputerName <new name>
Empty DNS cache:
dscacheutil -flushcache
Restart the computer.
If you have any questions, you can read this article: link
You can go to your file .bash_profile
and enter this line:
export PS1="\W \$ "
shows you ~ $
export PS1="\W jean \$ "
shows you ~ jean $
After saving this line you have to restart the terminal.