You can just set PROMPT
(and/or PROMPT2
, PROMPT3
and PROMPT4
) in a file with the extension .zsh
in the directory ~/.zsh.after/
, for example ~/.zsh.after/myprompt.zsh
:
PROMPT1='myprompt %# '
PROMPT2='> '
Have a look at the sections EXPANSION OF PROMPT SEQUENCES and following in zshmisc(1)
for some details on zsh prompts.
Also, have a look at the YADR documentation on themes for more details on how to use premade themes.