Skip to content

Commit

Permalink
Fixing history
Browse files Browse the repository at this point in the history
  • Loading branch information
giggio committed May 28, 2024
1 parent c0ede24 commit 658a1a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ HISTCONTROL=ignoreboth
shopt -s histappend

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

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

0 comments on commit 658a1a4

Please sign in to comment.