Added preview functions for fzf.

This commit is contained in:
James Patrick 2019-05-02 01:48:11 -04:00
parent c7afc0dcd1
commit 31d12e4344

View File

@ -56,6 +56,11 @@ zstyle ':tmux:auto-start' name 'tmux'
# FZF tmux properties. # FZF tmux properties.
FZF_TMUX=1 FZF_TMUX=1
FZF_TMUX_HEIGHT=30% FZF_TMUX_HEIGHT=30%
# Add fzf functions
export FZF_CTRL_T_OPTS="--preview \" (( $+commands[bat] )) \
&& bat --color=always --line-range :500 {} \
|| cat {} \""
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -100'"
# Auto suggestion config # Auto suggestion config
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7" ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7"