It may be tempting to write a prompt token function like this
if (( ${+commands[kerl]} )) REPLY=$(kerl prompt '<%s> ')
But if the command does not exist user may be end up with duplicated
tokens in her prompt. Resetting $REPLY parameter before calling
user-defined functions prevents this problem.
return 2
fi
if (( init )); then
+ REPLY=''
$token $name
token=$REPLY
fi
zstyle -s ":prompt:${grmltheme}:${lr}:items:$it" token new \
|| new=${grml_prompt_token_default[$it]}
if (( ${+grml_prompt_token_function[$it]} )); then
+ REPLY=''
${grml_prompt_token_function[$it]} $it
else
case $it in