update from tmp base16 fix
This commit is contained in:
32
.bashrc
32
.bashrc
@@ -64,20 +64,38 @@ if [ -d "$HOME/.local/bin" ] ; then
|
||||
fi
|
||||
|
||||
|
||||
#fast fuzzy file searching with fzf and ripgrep if installed
|
||||
#---begin fzf setup---
|
||||
#fast fuzzy file searching with fzf
|
||||
#fzf kbd shortcuts: <alt-c>, <ctrl-t>, <ctrl-p>
|
||||
source /usr/share/fzf/key-bindings.bash
|
||||
source /usr/share/fzf/completion.bash
|
||||
#export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
|
||||
export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"'
|
||||
|
||||
alias fzfcmd='fzf --bind "enter:execute(nvim {})"'
|
||||
#use ripgrep with fzf
|
||||
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'
|
||||
# export FZF_DEFAULT_OPTS="--ansi"
|
||||
|
||||
#use ansi color codes and bind ctrl-y to copy selection
|
||||
export FZF_DEFAULT_OPTS=' --ansi --bind "ctrl-y:execute-silent(printf {} | cut -f 2- | wl-copy --trim-newline)"'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
|
||||
#bind ctrl-p to text editor
|
||||
alias fzfcmd='fzf --bind "enter:execute($EDITOR {})"'
|
||||
bind -x '"\C-p": fzfcmd;'
|
||||
# bind -x '"\C-p": nvim $(fzf);'
|
||||
|
||||
#setup history for fzf
|
||||
# HISTFILESIZE=4096
|
||||
HISTCONTROL=ignoreboth:erasedups
|
||||
export HISTIGNORE="ls:cd:exit:ps:history:pass:gpg:start*"
|
||||
export HISTSIZE=4096
|
||||
export HISTFILESIZE=16384
|
||||
export HISTCONTROL=ignoreboth:erasedups
|
||||
shopt -s histappend
|
||||
# export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | '
|
||||
|
||||
# if [ -d "$HOME/bin/Fiji.app" ]; then
|
||||
|
||||
Reference in New Issue
Block a user