From 337cdbb37c1efc49b09b4cacc6e9ee1369c7d76d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 3 Mar 2017 19:09:29 +0900 Subject: [zsh] Use setopt noposixbuiltins instead of emulate -L zsh Close #858 https://github.com/junegunn/fzf/commit/3a6af27586c65bb9243c5af7c43a40619503db52#commitcomment-21135641 --- shell/key-bindings.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/key-bindings.zsh') diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 230c812c..caa6c38b 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -58,7 +58,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 pipefail 2> /dev/null + setopt localoptions noglobsubst noposixbuiltins pipefail 2> /dev/null selected=( $(fc -l 1 | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(q)LBUFFER} +m" $(__fzfcmd)) ) local ret=$? -- cgit v1.2.3