From 9b07bddfdcd576614e32dfa41cb91ad8f68e66c8 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Wed, 27 Mar 2019 21:02:42 +0300 Subject: [PATCH] sh -c isn't necessary --- rc/fzf.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/fzf.kak b/rc/fzf.kak index bd1a4cf..4076143 100644 --- a/rc/fzf.kak +++ b/rc/fzf.kak @@ -176,13 +176,14 @@ fzf -params .. %{ evaluate-commands %sh{ # if height contains `%' then `-p' will be used [ -n "${tmux_height%%*%}" ] && measure="-l" || measure="-p" # `terminal' doesn't support any kind of width and height parameters, so tmux panes are created by tmux itself - cmd="nop %sh{ command tmux split-window ${measure} ${tmux_height%%%*} 'sh -c ${fzfcmd}' }" + cmd="nop %sh{ command tmux split-window ${measure} ${tmux_height%%%*} '${fzfcmd}' }" else cmd="terminal %{${fzfcmd}}" fi printf "%s\n" "${cmd}" + # main loop ( while [ -e ${fzfcmd} ]; do sleep 0.1; done if [ -s ${result} ]; then (