Skip to content

Commit

Permalink
Allow custom fzf command to be set...
Browse files Browse the repository at this point in the history
...via $FZF_TAB_COMMAND env var
  • Loading branch information
zhimsel committed Apr 28, 2020
1 parent ce0f8fa commit ca2389a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/fzf-zsh-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ _fzf_completion_selector() {

tput cud1 >/dev/tty # fzf clears the line on exit so move down one
FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS" \
fzf --ansi --prompt "> $PREFIX" -d "$_FZF_COMPLETION_SEP" --with-nth 3..5 --nth "$field" \
"${FZF_TAB_COMMAND:-fzf}" --ansi --prompt "> $PREFIX" -d "$_FZF_COMPLETION_SEP" --with-nth 3..5 --nth "$field" \
< <(printf %s\\n "${lines[@]}"; cat)
code="$?"
tput cuu1 >/dev/tty
Expand Down

0 comments on commit ca2389a

Please sign in to comment.