aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 74c55684..0ea971e8 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -14,6 +14,9 @@ HISTCONTROL=ignoreboth
# Keep the times of the commands in history.
HISTTIMEFORMAT='%F %T '
+# Read in and submit history on each newline.
+PROMPT_COMMAND="history -n; history -a; ${PROMPT_COMMAND}"
+
# Don't check for mail all the time, it's irritating.
unset MAILCHECK