Skip to main content
edited body
Source Link
Zombo
  • 1
  • 7
  • 47
  • 65

To uniqely record every new command is tricky. First you need to add to "~/.profile"~/.profile or similar:

HISTCONTROL=erasedups PROMPT_COMMAND='history -a'w' 

Then you need to add to "~/.bash_logout"~/.bash_logout:

history -a history -w 

To uniqely record every new command is tricky. First you need to add to "~/.profile" or similar:

HISTCONTROL=erasedups PROMPT_COMMAND='history -a' 

Then you need to add to "~/.bash_logout":

history -a history -w 

To uniqely record every new command is tricky. First you need to add to ~/.profile or similar:

HISTCONTROL=erasedups PROMPT_COMMAND='history -w' 

Then you need to add to ~/.bash_logout:

history -a history -w 
Source Link
Zombo
  • 1
  • 7
  • 47
  • 65

To uniqely record every new command is tricky. First you need to add to "~/.profile" or similar:

HISTCONTROL=erasedups PROMPT_COMMAND='history -a' 

Then you need to add to "~/.bash_logout":

history -a history -w