This commit is contained in:
ackman678
2025-05-13 16:48:02 -04:00
parent a2a1008849
commit c0c3dc1b5b
4 changed files with 10 additions and 8 deletions

10
.bashrc
View File

@@ -70,17 +70,14 @@ fi
#---begin fzf setup---
#fast fuzzy file searching with fzf
#fzf kbd shortcuts: <alt-c>, <ctrl-t>, <ctrl-p>
#fzf kbd shortcuts: <alt-c>, <ctrl-r>, <ctrl-t>, <ctrl-p>
source /usr/share/fzf/key-bindings.bash
source /usr/share/fzf/completion.bash
#use ripgrep with fzf
#export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"'
export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"'
#export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
#bat instead of cat
#fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'
#or use fd with fzf
# export FZF_DEFAULT_COMMAND="fd --type file --color=always"
# export FZF_DEFAULT_COMMAND='fd --type file --hidden --color=always --follow --exclude .git'
@@ -97,7 +94,8 @@ bind -x '"\C-p": fzfcmd;'
#setup bash history
export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
#export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
export HISTIGNORE="ls*:cd*:exit:ps*:history:gpg*:start*"
# export HISTSIZE=4096
export HISTSIZE=-1 #make unlimited
# export HISTSIZE=0 #disable history