The default prompt that comes with MacOS is not very useful, so I configured my own by adding this line to my
export PS1="\[\033]0;\u@\h:\w\007\]\u@\h:\W\\$ "
This results in a prompt that looks like this:
This prompt displays the prompt as
username@hostname:currentdir$and in addition to that it sets the window title to