Do not load interactive parts when not required (#34)

This commit is contained in:
Junegunn Choi 2014-04-01 20:55:06 +09:00
parent 67ba87d390
commit e5ae4f0ef6

View File

@ -183,6 +183,8 @@ __fsel() {
echo
}
if [[ $- =~ i ]]; then
if [ -n "$TMUX_PANE" -a ${FZF_TMUX:-1} -ne 0 -a ${LINES:-40} -gt 15 ]; then
fzf-file-widget() {
local height
@ -220,6 +222,7 @@ fzf-history-widget() {
zle -N fzf-history-widget
bindkey '^R' fzf-history-widget
fi
EOFZF
fi
fi