A one-liner patch that makes the vcs_info prompt display symbolic names in one more case. Without this patch: [[[ master ccc840470aa9 % git checkout $(git rev-parse HEAD) ccc8404... ccc840470aa9 % ]]] With this patch: [[[ master ccc840470aa9 % git checkout $(git rev-parse HEAD) heads/master ccc840470aa9 % ]]]