title: Use CTRL + D to exit and CTRL + L to cls in Powershell console
body: <p>I am trying to make </p>
  
  <p><kbd>CTRL</kbd> + <kbd>D</kbd> - exit Powershell console</p>
  
  <p>and</p>
  
  <p><kbd>CTRL</kbd> + <kbd>L</kbd> - clear the screen</p>
  
  <p>like in bash.</p>
  
  <p>So far, I have seen that we can define</p>
  
  <pre><code>function ^D {exit}
  </code></pre>
  
  <p>but that means I have to do CTRL+D and then hit enter for it to work.</p>
  
  <p>Also, it doesn't even let me define</p>
  
  <pre><code>function ^L {exit}
  </code></pre>
  
  <p>Is there anyway to add these key bindings in the default Powershell console?</p>