Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fzf-tmux: Fix escaping of environment variables #2166

Closed
wants to merge 2 commits into from

Conversation

laloch
Copy link

@laloch laloch commented Sep 4, 2020

This fixes fzf-tmux failing if FZF_DEFAULT_OPTS or FZF_DEFAULT_COMMAND contain multiple arguments. Example of failing setup:

$ export FZF_DEFAULT_OPTS="--tiebreak=index --ansi --border"
$ export FZF_DEFAULT_COMMAND="fd --color always"
$ fzf-tmux

This also adds PATH to the fzf's environment to help it find the fd executable in the above example.

This helps fzf in resolving FZF_DEFAULT_COMMAND in case it's not
an absolute path.
@junegunn
Copy link
Owner

I can't reproduce the problem, the example works just fine.

$ export FZF_DEFAULT_OPTS="--tiebreak=index --ansi --border"
$ export FZF_DEFAULT_COMMAND="fd --color always"
$ fzf-tmux

@junegunn junegunn mentioned this pull request Sep 29, 2020
10 tasks
@junegunn junegunn closed this Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants