summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-03-03 19:09:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-03-03 19:09:29 +0900
commit337cdbb37c1efc49b09b4cacc6e9ee1369c7d76d (patch)
treeae48c23e22cdcd8728018980d95aee5b53317998
parent05fdf91fc5645018b2100917fa0be8d486e2ce39 (diff)
[zsh] Use setopt noposixbuiltins instead of emulate -L zsh
Close #858 https://github.com/junegunn/fzf/commit/3a6af27586c65bb9243c5af7c43a40619503db52#commitcomment-21135641
-rw-r--r--shell/completion.zsh2
-rw-r--r--shell/key-bindings.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh
index 9b9dba3e..6a374764 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -143,7 +143,7 @@ _fzf_complete_unalias() {
fzf-completion() {
local tokens cmd prefix trigger tail fzf matches lbuf d_cmds
- setopt localoptions noshwordsplit noksh_arrays
+ setopt localoptions noshwordsplit noksh_arrays noposixbuiltins
# http://zsh.sourceforge.net/FAQ/zshfaq03.html
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion-Flags
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=$?