summarylogtreecommitdiffstats
path: root/bash-eternal-history.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bash-eternal-history.sh')
-rw-r--r--bash-eternal-history.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bash-eternal-history.sh b/bash-eternal-history.sh
new file mode 100644
index 000000000000..177898d66a2e
--- /dev/null
+++ b/bash-eternal-history.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+export HISTTIMEFORMAT='%d/%m/%y %T '
+export HISTSIZE=-1
+export HISTFILESIZE=-1
+export HISTFILE=~/.bash_eternal_history
+export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"