prompt: trying to make measurement code more generic

...with respect to $PROMPT_COMMAND