how to change the displayed name in the terminal mac from the command line.
Use a text editor like vim to edit the .zshrc file
`vim ~/.zshrc`
If on vim press "i" to be able to edit
Export the PS1 and specify the desired string as shown below (foivos $) in my case:
`export PS1="foivos $ "`
If on vim press ":" and then "wq" to save
Activate the changes by
`source ~/.zshrc`
Or by opening a new terminal