m4-based generator for shell prompts