Skip to content

Commit

Permalink
fix(ftb-tmux-popup): default shell (#412)
Browse files Browse the repository at this point in the history
* fix(ftb-tmux-popup): default shell

close #410

* fix: invoke fzf with env command
  • Loading branch information
Aloxaf authored Feb 21, 2024
1 parent 7cd93f6 commit 869acb5
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 "$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 869acb5

Please sign in to comment.