prwd is a tool to print your working directory in a reduced form for your shell prompt. The path can be shortened using aliases, a maximum length, a filler character or in the style of a newsgroup. prwd can also read your branch in git and mercurial repositories.