title: How do I add a command to bash history without executing it?
body: <p>Use case is:</p>
  
  <p>I type a long command and then I realize I need to run something else first.</p>
  
  <p>I usually run it then CTRL C immediately.</p>
  
  <p>I guess I could also do <code>echo "command" &gt;&gt; $HISTFILE</code>, but that won't work with quotes.</p>