Added preview functions for fzf.
This commit is contained in:
parent
c7afc0dcd1
commit
31d12e4344
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user