From a9e034cb5c170a5c07e6d46f8de28fe0f6328cfb Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Mon, 19 Feb 2024 11:24:30 +0800 Subject: [PATCH] Update z.lua zsh plugin to allow customization of the fzf command used for fuzzy finding. - Introduced new environment variable _ZL_ZSH_FZF to specify the fzf command - Updated the eval statement to use the custom fzf command if provided by the user --- z.lua.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/z.lua.plugin.zsh b/z.lua.plugin.zsh index f4bcbc0..c7e2079 100644 --- a/z.lua.plugin.zsh +++ b/z.lua.plugin.zsh @@ -21,7 +21,9 @@ fi export _ZL_FZF_FLAG=${_ZL_FZF_FLAG:-"-e"} -eval "$($ZLUA_EXEC $ZLUA_SCRIPT --init zsh once enhanced fzf)" +_ZL_ZSH_FZF=${_ZL_ZSH_FZF:-fzf} + +eval "$($ZLUA_EXEC $ZLUA_SCRIPT --init zsh once enhanced $_ZL_ZSH_FZF)" if [[ -z "$_ZL_NO_ALIASES" ]]; then alias zz='z -i'