Closed blueray453 closed 4 years ago
Same issue
It seems like zsh doesn't like single quotes. Just solved it by replacing them with double quotes in the line 156 of agnoster.zsh-theme
:
PROMPT="%{%f%b%k}$(prompt_agnoster_main) "
zsh likes single quotes just fine, but they have a different meaning from double quotes: $
variable references inside single quotes are not expanded. Which means if you use single quotes here, it prevents the evaluation of $(prompt_agnoster_main)
, which isn't the intent here.
Nice! Thx for the explanation. What I don't understand is why it works with single quotes when sourcing through omz but not when sourcing directly in .zshrc
I'm going to guess that it's something to do with the prompt_subst
shell option and how it's being set.
I am using Linux Mint 19.3
Here is my
.zshrc
file:echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
also works.My prompt shows
$(prompt_agnoster_main)
, no color.What can I do?