From a4d1df8813ce1d3cdba59c95ea7622a15bac682c Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 8 Jul 2024 14:42:43 +0700 Subject: [PATCH] fzf: added preview for zsh completion using eza when completing z --- home/programs/zsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/programs/zsh.nix b/home/programs/zsh.nix index 71891ec..05ecd01 100644 --- a/home/programs/zsh.nix +++ b/home/programs/zsh.nix @@ -89,10 +89,10 @@ in zstyle ':completion:*' menu no # preview directory's content with eza when completing cd zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath' + # preview directory's content with eza when completing z + zstyle ':fzf-tab:complete:z:*' fzf-preview 'eza -1 --color=always $realpath' # switch group using `<` and `>` zstyle ':fzf-tab:*' switch-group '<' '>' - # Preview fzf - zstyle ':fzf-tab:*' fzf-preview 'eza -1 --color=always $realpath' '' (optionalString config.profile.podman.enable /*bash*/ '' zsh-defer source <(podman completion zsh)