3 ms·
Put shopt -s histappend export PROMPT_COMMAND="history -a;$PROMPT_COMMAND" in your ~/.bashrc. Also, if you want fresh history in an already opened wi
by unhammer 11y ago
Put
shopt -s histappend
export PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
in your ~/.bashrc.
Also, if you want fresh history in an already opened window (assuming you added the above), do "history -n". E.g. if you typed "longcommand" in window1, then switch to window2, do "history -n" and uparrow, and "longcommand" will be there.