chore(zsh): add FZF configuration

This commit is contained in:
Stefan Imhoff
2021-12-03 19:07:09 +01:00
parent 2f30b4682f
commit 2b224e414e

14
zshrc
View File

@@ -64,7 +64,7 @@ bindkey -M viins '^x^f' fzf-file-widget # (f)ile
bindkey -M viins '^x^j' fzf-cd-widget # (j)ump bindkey -M viins '^x^j' fzf-cd-widget # (j)ump
export KEYTIMEOUT=1 export KEYTIMEOUT=1
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc
export GIT_EDITOR=vim export GIT_EDITOR=vim
export EDITOR=vim export EDITOR=vim
@@ -82,6 +82,18 @@ BASE16_SHELL="$HOME/.config/base16-shell/"
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \ [ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")" eval "$("$BASE16_SHELL/profile_helper.sh")"
# FZF
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='fd --type f --color=never --hidden'
export FZF_DEFAULT_OPTS='--no-height'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --line-range :50 {}'"
export FZF_ALT_C_COMMAND='fd --type d . --color=never --hidden'
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -50'"
# }}} # }}}
# {{{ *** *** Aliases *** *** # {{{ *** *** Aliases *** ***