From 14e3b84073215e29f90f10e6ccce35704598e51d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 26 Jun 2015 00:14:36 +0900 Subject: [PATCH] [zsh] No need to define __fsel in non-interactive shell Since we now use fzf-tmux instead of tmux split-window --- shell/key-bindings.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index fecef20..642a35e 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -1,5 +1,7 @@ # Key bindings # ------------ +if [[ $- =~ i ]]; then + # CTRL-T - Paste the selected file path(s) into the command line __fsel() { command find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \ @@ -15,8 +17,6 @@ __fzfcmd() { [ ${FZF_TMUX:-1} -eq 1 ] && echo "fzf-tmux -d${FZF_TMUX_HEIGHT:-40%}" || echo "fzf" } -if [[ $- =~ i ]]; then - fzf-file-widget() { LBUFFER="${LBUFFER}$(__fsel)" zle redisplay