From 3b9984379cbd1a7a3ebb911744aca45da7ab3367 Mon Sep 17 00:00:00 2001 From: Kobe Lipkens Date: Fri, 25 Dec 2015 21:05:25 +0100 Subject: [PATCH] Pass FZF_DEFAULT_OPTS to non-interactive bash instance --- shell/key-bindings.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index 36c36fc..beaa5dd 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -25,7 +25,8 @@ __fzf_select_tmux__() { else height="-l $height" fi - tmux split-window $height "cd $(printf %q "$PWD"); PATH=$(printf %q "$PATH") FZF_CTRL_T_COMMAND=$(printf %q "$FZF_CTRL_T_COMMAND") bash -c 'source \"${BASH_SOURCE[0]}\"; tmux send-keys -t $TMUX_PANE \"\$(__fzf_select__)\"'" + + tmux split-window $height "cd $(printf %q "$PWD"); FZF_DEFAULT_OPTS=$(printf %q "$FZF_DEFAULT_OPTS") PATH=$(printf %q "$PATH") FZF_CTRL_T_COMMAND=$(printf %q "$FZF_CTRL_T_COMMAND") bash -c 'source \"${BASH_SOURCE[0]}\"; tmux send-keys -t $TMUX_PANE \"\$(__fzf_select__)\"'" } __fzf_select_tmux_auto__() {