[prompt] display git commit when being detached from HEAD