Quote:
Originally Posted by cilbuper
(..) when I do a history of the same username I don't see the same thing from tab to tab. I'm not sure how to figure out when the history gets "stuck" to a tab and when there are multiple tabs, how do they track/follow the history of a specific "history file"
|
Add these lines to your ~/.bashrc then log out completely and log in again:
Code:
shopt -q -s histappend >/dev/null 2>&1
export PROMPT_COMMAND='history -a' >/dev/null 2>&1
To test open two terminal windows and type:
in one window then press enter.
In the other terminal window press up arrow key one time.
Notice the first history line is what you typed in the other window.