title: Powershell how to make the prompt change on key press?
body: <p>I'm new to Powershell. I'm trying to create my own custom prompt that shows a truncated version of the current dir unless you expand it by pressing <code>CTRL + R</code>. Moreover, I would like to do this:</p>
  
  <pre><code>$short\dir\path...&gt;
  *user presses CTRL+R*
  $really\really\long\full\dir\path&gt;
  *Full dir path is shown as long as CTLR + R is held down*
  </code></pre>