Skip to content

Commit a9e034c

Browse files
author
skywind3000
committed
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
1 parent 9921340 commit a9e034c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

z.lua.plugin.zsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ fi
2121

2222
export _ZL_FZF_FLAG=${_ZL_FZF_FLAG:-"-e"}
2323

24-
eval "$($ZLUA_EXEC $ZLUA_SCRIPT --init zsh once enhanced fzf)"
24+
_ZL_ZSH_FZF=${_ZL_ZSH_FZF:-fzf}
25+
26+
eval "$($ZLUA_EXEC $ZLUA_SCRIPT --init zsh once enhanced $_ZL_ZSH_FZF)"
2527

2628
if [[ -z "$_ZL_NO_ALIASES" ]]; then
2729
alias zz='z -i'

0 commit comments

Comments
 (0)