I'd like a prompt in zsh which is showing the actual state of a certain environment variable. Right now I am using the below method, but it is evaluating the variable only once when zsh is started up and when the value of the variable changes the prompt remains the same. Is there a way to make it dynamic?
export PROMPT="[${THE_VAR}]"