It can also be nice to use HISTCONTROL=ignorespace<p>If you&#x27;re planning on keeping a lot of history, ignorespace makes it easy to avoid inserting commands with sensitive info. A well-placed $(cat) can work too.<p><pre><code>    $  PASSWORD=hunter2 # sensitive info doesn&#x27;t go into history
    $ curl -O http:&#x2F;&#x2F;name:$PASSWORD@server&#x2F;path # command with correct syntax does go into history</code></pre>