aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mkshrc6
-rw-r--r--shell/conf6
2 files changed, 10 insertions, 2 deletions
diff --git a/mkshrc b/mkshrc
index e8410a6..32dbce5 100644
--- a/mkshrc
+++ b/mkshrc
@@ -605,7 +605,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
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