From 33ac8ff35140cd003925af03c813ffc72796aa18 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Fri, 23 Nov 2018 19:13:46 +0300 Subject: [PATCH] remove export --- rc/fzf.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/fzf.kak b/rc/fzf.kak index 0165e6b..45c97e3 100644 --- a/rc/fzf.kak +++ b/rc/fzf.kak @@ -106,11 +106,11 @@ define-command -hidden fzf -params 2..3 %{ evaluate-commands %sh{ tmp=$(mktemp ${TMPDIR:-/tmp}/kak-fzf.XXXXXX) shell=$(command -v sh) if [ ! -z "${kak_client_env_TMUX}" ]; then - cmd="export SHELL=$shell; $preview_pos $items_command | fzf-tmux -d $tmux_height $additional_flags > $tmp" + cmd="$preview_pos $items_command | fzf-tmux -d $tmux_height $additional_flags > $tmp" elif [ ! -z "${kak_opt_termcmd}" ]; then fzfcmd=$(mktemp ${TMPDIR:-/tmp}/kak-fzfcmd.XXXXXX) chmod 755 $fzfcmd - printf "%s\n" "export SHELL=$shell; cd $PWD && $preview_pos $items_command | fzf $additional_flags > $tmp" > $fzfcmd + printf "%s\n" "cd $PWD && $preview_pos $items_command | SHELL=$shell fzf $additional_flags > $tmp" > $fzfcmd cmd="$kak_opt_termcmd 'sh -c $fzfcmd'" else printf "%s\n" "fail %{termcmd option is not set}"