aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-06-05 08:50:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-06-05 08:50:00 +1200
commit4a3c9f518a9390a6a127a8bd6e6d79a99568f4a2 (patch)
tree8057c8b31cb053d48f7b9abb2e1bf26d1b2d8147 /bash
parentHistory still broken. Giving up. (diff)
downloaddotfiles-4a3c9f518a9390a6a127a8bd6e6d79a99568f4a2.tar.gz
dotfiles-4a3c9f518a9390a6a127a8bd6e6d79a99568f4a2.zip
Commit history lines immediately
Diffstat (limited to 'bash')
-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