nanorc
This commit is contained in:
10
.bashrc
10
.bashrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user