aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-10-17 22:39:44 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-10-17 22:39:44 -0400
commit787b5ce75095d21fd09e706b40d9bab0f6af967f (patch)
tree0c7d09378b42294efa9863394d0d9e0bd6346de9 /shell
parentad32b6f4663a43c9dfa6aa39b6557ad74a3b6087 (diff)
downloaddotfiles-787b5ce75095d21fd09e706b40d9bab0f6af967f.tar.gz
dotfiles-787b5ce75095d21fd09e706b40d9bab0f6af967f.tar.xz
Fix up bash history.
Diffstat (limited to 'shell')
-rw-r--r--shell/conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/conf b/shell/conf
index 157bd9c..dd7e6e2 100644
--- a/shell/conf
+++ b/shell/conf
@@ -52,7 +52,11 @@ elif [ $SHELL = "/bin/sh" ] && [ "$(uname)" = "FreeBSD" ] ; then
set -o emacs
export PS1="$(whoami)"'@\h:\w \$ '
elif ! [ -z "$BASH" ] ; then
- export PROMPT_COMMAND="set_my_title"
+ HISTFILE="$HOME/.bash_history"
+ HISTSIZE=10000
+ HISTFILESIZE=10000
+ shopt -s histappend
+ export PROMPT_COMMAND="set_my_title;history -a; history -c; history -r"
fi
if [ $COLOR -eq 1 ] ; then