summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-06-26 00:14:36 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-06-26 00:14:36 +0900
commit14e3b84073215e29f90f10e6ccce35704598e51d (patch)
treeace9a7eb062d008bd689bbc8628e894ab7decb59 /shell
parent56100f0fa76f0e106ca54b7571f05d5837d61717 (diff)
[zsh] No need to define __fsel in non-interactive shell
Since we now use fzf-tmux instead of tmux split-window
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index fecef20e..642a35e8 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