diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-05-11 22:53:35 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-05-11 22:53:35 +0900 |
commit | 2b61dc6557b3ecdca7f8641b0c7c4d55e03d725b (patch) | |
tree | fcc6ff9b6d52602ca6d0d55d0ca7134ddeaa0eb5 /shell | |
parent | 0b770cd48a43cd817d9810213da0de2a295bb1a2 (diff) |
[zsh-completion] Do not overwrite $fzf_default_completion
Diffstat (limited to 'shell')
-rw-r--r-- | shell/completion.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh index 0792a099..299826c1 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -149,7 +149,8 @@ fzf-completion() { fi } -fzf_default_completion=$(bindkey '^I' | grep -v undefined-key | awk '{print $2}') +[ -z "$fzf_default_completion" ] && + fzf_default_completion=$(bindkey '^I' | grep -v undefined-key | awk '{print $2}') zle -N fzf-completion bindkey '^I' fzf-completion |