title: Command Prompt Directory Styling
body: <p>I have a particular need for adjusting the command prompt. At the moment i am using <a href="https://github.com/holman/dotfiles" rel="nofollow noreferrer">Holmans Dotfiles</a> and I want to further customize it in order to create a prompt that's more readable and clear. What I would like is described below using image, plz note that these are photoshopped in order to look as i want them to ;). <a href="https://github.com/holman/dotfiles/issues/71" rel="nofollow noreferrer">This is also an issue on github, with inline images!</a></p>
  <p>Let's say you have this file structure as in this image:</p>
  <p><img src="https://i.stack.imgur.com/1TlXp.png" alt="enter image description here" /></p>
  <p>At the moment, when I am in lets say map3 my prompt only shows:</p>
  <p><img src="https://f.cloud.github.com/assets/429659/200069/c28234a6-80b7-11e2-8b71-1adc0aab4bc8.png" alt="image" /></p>
  <p>I want to extend this but with alternative styling. At the moment the current map (map3) i am in is highlighted with cyan. I want to be able to see it's parents but those not being highlighted in the same color. Plz look at the image below:</p>
  <p><img src="https://f.cloud.github.com/assets/429659/200059/412b381c-80b7-11e2-920b-30db901a9653.png" alt="image" /></p>
  <p>from what i know, is that %3 gives the last 3 dir. However I don't know how to style each dir individually.</p>
  <p>--------------------------- the other optional idea ----------------------------------------</p>
  <p>The other idea I had, but which is of inferior importance to the problem described above is to have a relative prompt based on if a dir is a git repository yes or no. (so the dirtree is always visible up to the rootmap of the git repo)</p>
  <p>that is say that map0 is the root of the git repository and i am in map3, then I would like my prompt to be like this:</p>
  <p><img src="https://f.cloud.github.com/assets/429659/200115/c6bce514-80b9-11e2-8ced-198b9af11dff.png" alt="image" /></p>
  <p>when i am in map5 like this:</p>
  <p><img src="https://f.cloud.github.com/assets/429659/200116/cea6b656-80b9-11e2-98f5-61d5bc88f0dc.png" alt="image" /></p>
  <p>optionally it would be nice to be able to style the rootgit map like this for example:</p>
  <p><img src="https://f.cloud.github.com/assets/429659/200131/deaca95c-80b9-11e2-9584-84a622f7da81.png" alt="image" /></p>
  <p>at the moment my prompt is the same as in holmans dotfiles</p>