From bdb94fba7db3d0b59954b474439c28fb1f3fa8d8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 26 May 2016 00:52:06 +0900 Subject: [zsh] Fix #579 - Locally unset globsubst --- shell/key-bindings.zsh | 1 + 1 file changed, 1 insertion(+) (limited to 'shell/key-bindings.zsh') diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index f60bbaea..a173b12f 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -38,6 +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 + setopt localoptions noglobsubst 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] -- cgit v1.2.3