Closed GalGreenfield closed 4 years ago
user@host is displayed when your current user does not match the default user https://github.com/robbyrussell/oh-my-zsh/issues/2033
tldr: add this to your .zshrc
DEFAULT_USER=`whoami`
Calling this solved.
I'm trying to remove the theme's
user@host
from the prompt..bashrc
file..zshrc
file.In
agnoster.zsh-theme
, these are the things I tried to do (separately):prompt_context
prompt_context
functionprompt_context
in thebuild_prompts
functionI might have tried a few combinations of the things above, I don't remember.
Nothing that I did worked - the prompt still kept displaying my
user@host
.I verified that when Zsh is not running, the
user@host
is not displayed when I change PS1 to not display it in.bashrc
.Why is this happening and what can I do to solve it?