I would like to remove the hostname (I think that's what it is?) which is printed after @ on each line of the zsh terminal.
At the moment at the start of every line I have:
name@names-MacBook-Pro ~ %
I would like it to be:
name ~ %
I tried making a file in the home directory called '.zshrc' and putting the following into it (based on ZSH: Hide computer name in terminal):
export DEFAULT_USER="$(whoami)"
but it hasn't changed anything. Does anyone have any advice?