From d1514ba0e1e2697e16a6ac5e4ceb32dab75c8ce8 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 20 Aug 2022 01:11:14 +0900 Subject: [PATCH] set `HISTFILESIZE` and `HISTSIZE` to INT_MAX --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index a693ad2..669477f 100644 --- a/.bashrc +++ b/.bashrc @@ -2,8 +2,8 @@ [[ -f /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion [[ "$TERM" == xterm-256color ]] && PS1='\[\e]0;\u@\h: \w\a\]' HISTCONTROL=ignoreboth:erasedups -HISTFILESIZE=2000000 -HISTSIZE=2000000 +HISTFILESIZE=$((0x7fffffff)) +HISTSIZE=$((0x7fffffff)) PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }' PS1=$PS1'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' PS1=${PS1%'\$ '}'$(__git_ps1 " \[\033[32m\](%s)\[\033[00m\]")\n\$ '