From e5ae4f0ef6cf22bd308f73a0b5e6e7dddebb0abe Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 1 Apr 2014 20:55:06 +0900 Subject: [PATCH] Do not load interactive parts when not required (#34) --- install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install b/install index 9d27192..6d006de 100755 --- a/install +++ b/install @@ -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