Preserve bash history in multiple terminal windows

    Add the following to your ~/.bashrc:    
# Avoid duplicates  HISTCONTROL=ignoredups:erasedups  # When the shell exits, append to the history file instead of overwriting it  shopt -s histappend    # After each command, append to the history file and reread it  PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"

Popular posts from this blog

cognos content store database tables

How to fix: User, group, or role '*' already exists in the current database. (Microsoft SQL Server, Error: 15023)