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 4eee163b..b99a1b14 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -14,6 +14,9 @@ HISTCONTROL=ignoreboth
# Keep the times of the commands in history.
HISTTIMEFORMAT='%F %T '
+# Add history entries directly.
+PROMPT_COMMAND="history -a; ${PROMPT_COMMAND}"
+
# Don't check for mail all the time, it's irritating.
unset MAILCHECK