title: Saving current directory to bash history
body: <p>I'd like to save the current directory where the each command was issued alongside the command in the history.  In order not to mess things up, I was thinking about adding the current directory as a comment at the end of the line.  An example might help:</p>
  
  <pre><code>$ cd /usr/local/wherever
  $ grep timmy accounts.txt
  </code></pre>
  
  <p>I'd like bash to save the last command as:</p>
  
  <pre><code>grep timmy accounts.txt # /usr/local/wherever
  </code></pre>
  
  <p>The idea is that this way I could immediately see where I issued the command.</p>