[zsh] modify PROMPT, problem with a variable

view story

https://bbs.archlinux.org – Good morning,I wanted to try zsh for a while and I finally installed it. I used bash for a long time.In my .bashrc, I modified to variable PS1 to display something like this : user@host current_directory size_of_the_directory $Unfortunately with zsh, I cannot do it anymore.Here is the command I use to get the size of my directory : ls | grep -m 1 total | sed 's/total //'This returns something like 256K, 40G, ...With zsh, in the PROMPT variable, I cannot find how to execute that, it just doesn't work, I tried with $(), `the command`, ...I looked in the documentation and I found t (HowTos)