ZSH: Hide computer name in terminal

achoukah picture achoukah · Aug 6, 2015 · Viewed 51.5k times · Source

How would I hide the computer name in the prompt while using the terminal?

At the moment it shows both username and computer name like so:

iTerm screenshot of user prompt

It would save some space by removing anwarchoukah@anwars-mbp, seeing as I actually know who I am:)

Answer

Alex Kompaniets picture Alex Kompaniets · Jul 13, 2016

try to add export DEFAULT_USER="$(whoami)" to your .zshrc file