<a href="http:&#x2F;&#x2F;askubuntu.com&#x2F;questions&#x2F;67283&#x2F;is-it-possible-to-make-writing-to-bash-history-immediate" rel="nofollow">http:&#x2F;&#x2F;askubuntu.com&#x2F;questions&#x2F;67283&#x2F;is-it-possible-to-make-...</a> might do it?<p>(In zsh I believe it&#x27;s:<p><pre><code>    setopt inc_append_history
    setopt share_history
)</code></pre>