diff options
-rw-r--r-- | dotfiles/bashrc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dotfiles/bashrc b/dotfiles/bashrc index 03b3b69..472a267 100644 --- a/dotfiles/bashrc +++ b/dotfiles/bashrc @@ -11,8 +11,17 @@ if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi +HISTSIZE=5000 +export HISTSIZE shopt -s histappend +UNFUCK_BASH_HISTORY="history -a" +if test -z "$PROMPT_COMMAND"; then + PROMPT_COMMAND="$PROMPT_COMMAND;$UNFUCK_BASH_HISTORY" +else + PROMPT_COMMAND="$UNFUCK_BASH_HISTORY" +fi + EDITOR="emacsclient" export EDITOR |