1
0
Fork 0

workaround fish shell variable

This commit is contained in:
Andrey Orst 2018-10-12 15:09:06 +03:00
parent 9aa4049375
commit d4381aaa47

View file

@ -333,8 +333,7 @@ define-command -hidden fzf -params 2..3 %{ evaluate-commands %sh{
cmd="$preview_pos $items_command | fzf-tmux -d $kak_opt_fzf_tmux_height --expect ctrl-q $additional_flags > $tmp" cmd="$preview_pos $items_command | fzf-tmux -d $kak_opt_fzf_tmux_height --expect ctrl-q $additional_flags > $tmp"
elif [ ! -z "${kak_opt_termcmd}" ]; then elif [ ! -z "${kak_opt_termcmd}" ]; then
path=$(pwd) path=$(pwd)
# additional_flags=$(echo $additional_flags | sed "s:\$pos:\\\\\$pos:") cmd="$kak_opt_termcmd \"sh -c \\\"sh=$(which sh); SHELL=\\\$sh; export SHELL; cd $path && $preview_pos $items_command | fzf --expect ctrl-q $additional_flags > $tmp\\\"\""
cmd="$kak_opt_termcmd \"sh -c \\\"cd $path && $preview_pos $items_command | fzf --expect ctrl-q $additional_flags > $tmp\\\"\""
else else
echo "fail termcmd option is not set" echo "fail termcmd option is not set"
exit exit