[HG] Only show prompt when in a repo.
[SYSTEM] Edit misc functions.