From 754adc9cf7d048d2abfd87b866b79950bb132661 Mon Sep 17 00:00:00 2001 From: druckdev Date: Wed, 17 Feb 2021 02:56:08 +0100 Subject: [PATCH] zsh:fzf-tab: Limit dir previews to a depth of 3 Otherwise this is way to performance heavy in large directories. --- .config/zsh/zshrc.d/90-external-plugins/45-fzf-tab-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index 69cc7cb..43f9f3e 100644 --- a/.config/zsh/zshrc.d/90-external-plugins/45-fzf-tab-config +++ b/.config/zsh/zshrc.d/90-external-plugins/45-fzf-tab-config @@ -6,7 +6,7 @@ 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 +(( $+commands[tree] )) && dir_prev_cmd="tree -C -L 3" || dir_prev_cmd=ls read -r -d '' preview_cmd <