agnoster / agnoster-zsh-theme

A ZSH theme designed to disclose information contextually, with a powerline aesthetic
4.02k stars 591 forks source link

Remove my `user@host` from the prompt #105

Closed GalGreenfield closed 4 years ago

GalGreenfield commented 5 years ago

I'm trying to remove the theme's user@host from the prompt.

In agnoster.zsh-theme, these are the things I tried to do (separately):

I 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?

Friz64 commented 5 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` 
apjanke commented 4 years ago

Calling this solved.