diff --git a/.config/zsh/zshrc.d/90-external-plugins/45-fzf-tab-config b/.config/zsh/zshrc.d/90-external-plugins/45-fzf-tab-config new file mode 100644 index 0000000..69cc7cb --- /dev/null +++ b/.config/zsh/zshrc.d/90-external-plugins/45-fzf-tab-config @@ -0,0 +1,28 @@ +# TODO: Why do we need this here again? What overrides it after being executed +# in 20-completion.zsh? +# Colors +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} + +# Preview files and folders +# NOTE: Find out more about current context with h +(( $+commands[bat] )) && file_prev_cmd="bat --color=always" || file_prev_cmd=cat +(( $+commands[tree] )) && dir_prev_cmd="tree -C" || dir_prev_cmd=ls +read -r -d '' preview_cmd <