summarylogtreecommitdiffstats
path: root/bash-eternal-history.sh
diff options
context:
space:
mode:
authorRémi Audebert2016-05-19 23:00:14 -0700
committerRémi Audebert2016-05-19 23:00:14 -0700
commit02a6ee6e5336bfbee85f04e3e29851c631a4895f (patch)
treef0efb195b7fde661f3d98e2af163c41c2c3e7dd3 /bash-eternal-history.sh
downloadaur-bash-eternal-history.tar.gz
Initial import of bash-eternal-history
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"