aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Nazaryev <sergey@nazaryev.ru>2018-08-20 19:37:06 +0300
committerSergey Nazaryev <sergey@nazaryev.ru>2020-08-27 19:14:13 +0300
commit92a37313eeae504498792c1446d485d4951238bd (patch)
tree9e1389d4135d00c6d2a6512246dc0322e0a1fbf2
parent48840f3d268b91f92dcf88359305214980db2386 (diff)
downloaddotfiles-92a37313eeae504498792c1446d485d4951238bd.zip
dotfiles-92a37313eeae504498792c1446d485d4951238bd.tar.gz
dotfiles-92a37313eeae504498792c1446d485d4951238bd.tar.bz2
Endless bash_history
-rw-r--r--bash_history7
-rwxr-xr-xinstall.sh4
2 files changed, 11 insertions, 0 deletions
diff --git a/bash_history b/bash_history
new file mode 100644
index 0000000..156aeac
--- /dev/null
+++ b/bash_history
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+shopt -s histappend
+PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
+HISTSIZE=-1
+HISTFILESIZE=-1
+export HISTSIZE HISTFILESIZE
diff --git a/install.sh b/install.sh
index fd7b072..93848f6 100755
--- a/install.sh
+++ b/install.sh
@@ -177,6 +177,10 @@ install_dotfile "bash" \
"$HOME/.bash_profile"
install_dotfile "bash" \
+ "$dotfilesdir/bash_history" \
+ "$HOME/.bashrc.d/01-bash_history"
+
+install_dotfile "bash" \
"$dotfilesdir/bash_env" \
"$HOME/.bashrc.d/02-bash_env"