the pc name in the bash terminal is too long code example Example 1: mac terminal hide username export PS1="\W \$" Example 2: how to hide hostname mac terminal export PS1="\u$ "