Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Yes indeed. It's odd to me that PROMPT_SUBST isn't the default, but that's my problem. :) Thanks very much. Commented Mar 31, 2018 at 16:28
  • it also doesn't expand any basic variables containing colour codes that has been set just before wich I thought was odd. Setting the PROMPT_SUBST didn't fix that. Commented Jun 7, 2022 at 11:23
  • @Brad PROMPT_SUBST affects all ordinary expansions that are part of a prompt. There are better ways to get color in the zsh shell's prompt. %F{red} sets the foreground color to red, for example. See the manual. Commented Jun 7, 2022 at 11:28
  • ah cheers Ive been trying to get my custom bash prompt to work in zsh 😩 Commented Jun 7, 2022 at 11:45