Use directory traversal to shorten path in prompt
Uses full name for Git or Hg repo folders