aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Nazaryev <sergey@nazaryev.ru>2018-08-20 19:37:06 +0300
committerSergey Nazaryev <sergey@nazaryev.ru>2018-08-20 19:37:06 +0300
commit81e953c10c22a59ed226ae9c3daaa84b239715b6 (patch)
tree9e1389d4135d00c6d2a6512246dc0322e0a1fbf2
parent215989f6c48cd3c1c972badc9a976e22e8d2a0b4 (diff)
downloaddotfiles-81e953c10c22a59ed226ae9c3daaa84b239715b6.zip
dotfiles-81e953c10c22a59ed226ae9c3daaa84b239715b6.tar.gz
dotfiles-81e953c10c22a59ed226ae9c3daaa84b239715b6.tar.bz2
Бесконечная история для bash'а
-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"