Skip to content

Commit

Permalink
fix: invoke fzf with env command
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloxaf committed Feb 21, 2024
1 parent ae95d1e commit 50abdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ftb-tmux-popup
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fi
popup_width=$(( min(max(comp_length + 5, popup_min_size[1]), window_width) ))
popup_x=$(( cursor_x + popup_width > window_width ? window_width - popup_width : cursor_x ))

echo -E "SHELL=$ZSH_NAME $commands[fzf] ${(qq)fzf_opts[@]} < $tmp_dir/completions.$$ > $tmp_dir/result-$$" > $tmp_dir/fzf-$$
echo -E "env SHELL=$ZSH_NAME $commands[fzf] ${(qq)fzf_opts[@]} < $tmp_dir/completions.$$ > $tmp_dir/result-$$" > $tmp_dir/fzf-$$
{
tmux popup -x $popup_x -y $popup_y \
-w $popup_width -h $popup_height \
Expand Down

0 comments on commit 50abdd7

Please sign in to comment.