Skip to content

Commit 658a1a4

Browse files
committed
Fixing history
1 parent c0ede24 commit 658a1a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.bashrc

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ HISTCONTROL=ignoreboth
1717
shopt -s histappend
1818

1919
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
20-
HISTSIZE=20000
21-
HISTFILESIZE=20000
20+
HISTSIZE=-1
21+
HISTFILESIZE=-1
22+
# see https://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
23+
HISTFILE=~/.bash_history2
2224

2325
# check the window size after each command and, if necessary,
2426
# update the values of LINES and COLUMNS.
@@ -84,7 +86,7 @@ if [ -e "$HOME"/.go/bin/go ]; then
8486
export PATH=$PATH:$HOME/go/bin
8587
fi
8688
fi
87-
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
89+
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
8890
export LC_ALL=en_US.UTF-8
8991
set -o vi
9092
bind '"jj":"\e"'

0 commit comments

Comments
 (0)