From 24f3ec7f33e2c7b0e66987558af1f150fcf148ca Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 23 Mar 2016 03:02:57 +0900 Subject: [PATCH] Fix FZF_CTRL_R_OPTS for zsh (#526) --- shell/key-bindings.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 8d01437..8a03585 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -38,7 +38,7 @@ bindkey '\ec' fzf-cd-widget # CTRL-R - Paste the selected command from history into the command line fzf-history-widget() { local selected num - selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS -q "${LBUFFER//$/\\$}") ) + selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r ${=FZF_CTRL_R_OPTS} -q "${LBUFFER//$/\\$}") ) if [ -n "$selected" ]; then num=$selected[1] if [ -n "$num" ]; then