# Add this line near the bottom: PROMPT_COMMAND="history -a;$PROMPT_COMMAND"