I'm not too versed with the terminal. I'm using zsh with prezto and I wanted to show the node version in the prompt. At the prezto repo they provide these instructions: https://github.com/sorin-ionescu/prezto/tree/master/modules/node
And I can follow up to the last part:
Then add $node_info[version] to either $PROMPT or $RPROMPT and call node-info in prompt_name_preexec hook function.
I added $node_info[version] to the $PROMPT in my theme file, but what does it mean to call node-info in the prompt_name_preexec hook? is that a function inside my theme file? I honestly have no clue what is talking about.
Thanks!