Skip to content
Snippets Groups Projects
Commit e5ae4f0e authored by Junegunn Choi's avatar Junegunn Choi
Browse files

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

parent 67ba87d3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment