summaryrefslogtreecommitdiff
path: root/shell/key-bindings.zsh
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-03-23 03:02:57 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-03-23 03:02:57 +0900
commit24f3ec7f33e2c7b0e66987558af1f150fcf148ca (patch)
treeccf6a0770be9c3fae3946f8a056661c069d49d70 /shell/key-bindings.zsh
parenta57b375b413e12b01e648d4fcaf91e29a53ae75d (diff)
downloadfzf-24f3ec7f33e2c7b0e66987558af1f150fcf148ca.tar.gz
Fix FZF_CTRL_R_OPTS for zsh (#526)
Diffstat (limited to 'shell/key-bindings.zsh')
-rw-r--r--shell/key-bindings.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index 8d01437a..8a03585d 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