ZSH: Hide computer name in terminal
问题 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: It would save some space by removing anwarchoukah@anwars-mbp , seeing as I actually know who I am:) 回答1: Open up .zshrc , find the line reading export PS1 or maybe export PROMPT . Remove the variable that is used for the hostname, could be %m or %M. Customizing your shell prompt By the way you can use colors, and you can also have a prompt (or some info)