It is the feature according to this; when we are ssh
ing, the hostname will be shown.
Overriding the function prompt_context
or build_prompt
on Agnoster theme will rescue. Putting below snippets at the very end of the ~/.zshrc
for example.
# redefine prompt_context for hiding user@hostname
prompt_context () { }