This commit is contained in:
ackman678
2023-09-29 00:32:44 -04:00
parent 938c4691e4
commit bf837a53f5
3 changed files with 25 additions and 20 deletions

11
.bashrc
View File

@@ -94,10 +94,13 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
alias fzfcmd='fzf --bind "enter:execute($EDITOR {})"'
bind -x '"\C-p": fzfcmd;'
#setup history for fzf
export HISTIGNORE="ls:cd:exit:ps:history:pass:gpg:start*"
export HISTSIZE=4096
export HISTFILESIZE=16384
#setup bash history
export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
# export HISTSIZE=4096
export HISTSIZE=-1 #make unlimited
# export HISTSIZE=0 #disable history
# export HISTFILESIZE=32768
unset HISTFILESIZE
export HISTCONTROL=ignoreboth:erasedups
shopt -s histappend
# export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | '