How can I change the prompt of my zsh shell while still retaining the cool coloring that agnoster provides? For people who don't know, it looks like this
I want to add some things like ! and \u before the working directories. I've tried the usual PS1="! \u \w" but it just gives this:

EDIT: I found the right escaped characters for inserting information, but it cancels out the styling
How can I change the prompt while maintaining the styling?
You'd have to customise the theme, i.e.
.oh-my-zsh/themes/agnoster.zsh-theme, add your own function to the build_prompt function and add whatever you need to the prompt:I personally added a
prompt_customstub, which I then replace with the real prompt function in my.zshrc, so I only have to maintain that small customisation (probabaly worthty of a pull request at some stage...)