I keep a pretty long bash history, but I don&#x27;t have it unified among machines or anything.<p>Others have mentioned several handy tweaks for doing this, but I didn&#x27;t see all of the ones I use so I thought I&#x27;d share them here.  One of the important bits is the HISTIGNORE.  I am interested in commands that I might want to search for and run again one day, so I filter out commands I consider to be clutter.<p><pre><code>  # Configure my history preferences
    # Load history substitute into readline rather than immediately executing
    shopt -s histverify histreedit
    set histappend

    # don&#x27;t put duplicate lines or lines with leading spaces in the history. See bash(1) for more options
    export HISTCONTROL=ignoreboth

    export HISTIGNORE=&#x27;&amp;:bg:fg:cd*:clear:ls:pwd:history:exit:make*:* --help:&#x27;
    export HISTTIMEFORMAT=&quot;%m&#x2F;%d&#x2F;%y - %H:%M:%S &quot;</code></pre>