sh -c isn't necessary
This commit is contained in:
parent
012b65e569
commit
9b07bddfdc
1 changed files with 2 additions and 1 deletions
|
@ -176,13 +176,14 @@ fzf -params .. %{ evaluate-commands %sh{
|
||||||
# if height contains `%' then `-p' will be used
|
# if height contains `%' then `-p' will be used
|
||||||
[ -n "${tmux_height%%*%}" ] && measure="-l" || measure="-p"
|
[ -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
|
# `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
|
else
|
||||||
cmd="terminal %{${fzfcmd}}"
|
cmd="terminal %{${fzfcmd}}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s\n" "${cmd}"
|
printf "%s\n" "${cmd}"
|
||||||
|
|
||||||
|
# main loop
|
||||||
( while [ -e ${fzfcmd} ]; do sleep 0.1; done
|
( while [ -e ${fzfcmd} ]; do sleep 0.1; done
|
||||||
if [ -s ${result} ]; then
|
if [ -s ${result} ]; then
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue