diff --git a/zsh/zshenv b/zsh/zshenv index 1e83051..6085844 100644 --- a/zsh/zshenv +++ b/zsh/zshenv @@ -56,6 +56,11 @@ zstyle ':tmux:auto-start' name 'tmux' # FZF tmux properties. FZF_TMUX=1 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 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7"