1
0
Fork 0

fzf configs

This commit is contained in:
Massaki Archambault 2019-03-07 20:05:37 -05:00
parent c837fc9a64
commit 6fe4a6b070
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,10 @@
# show file preview on CTRL+T
export FZF_DEFAULT_OPTS="--height 90% --preview '([[ -d {} ]] && lsd --color always --icon always --tree --depth 3 {} || highlight -O ansi -l {} || (file {} | grep -q text && cat {} || od -A x -t xz -v {})) 2>/dev/null | head -200'"
# Use tmux pane if available
export FZF_TMUX=1
export FZF_TMUX_HEIGHT=90%
# Remove duplicate when using Ctrl+R # Remove duplicate when using Ctrl+R
# https://github.com/junegunn/fzf/issues/626 # https://github.com/junegunn/fzf/issues/626
__fzf_history__() ( __fzf_history__() (