forked from wfxr/forgit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make fzf '--preview' argument overridable in environment
Arguments to fzf are passed via the FZF_DEFAULT_OPTS environment variable, which can be overridden by a dedicated FORGIT_<cmd>_FZF_OPTS variable for each command separately. The '--preview' argument, however, was excluded from this mechanism and hard-coded to the fzf call, so that there was no chance overriding it. This patch moves the passing of this argument to the FZF_DEFAULT_OPTS variable for all commands, so that it can be overridden as well. Fixes wfxr#185
- Loading branch information
1 parent
c9185dd
commit 76663aa
Showing
1 changed file
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters