Skip to content
Snippets Groups Projects
Commit f074709f authored by Andrey Kashin's avatar Andrey Kashin Committed by acid
Browse files

Change tmux pane title for fzf splits

parent e0b29e43
No related branches found
No related tags found
No related merge requests found
......@@ -144,14 +144,14 @@ if [ -n "$term" -o -t 0 ]; then
cat <<< "$fzf $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf
tmux set-window-option synchronize-panes off \;\
set-window-option remain-on-exit off \;\
split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap \
split-window $opt "printf '\033]2;fzf\033\\'; cd $(printf %q "$PWD");$envs bash $argsf" $swap \
> /dev/null 2>&1
else
mkfifo $fifo1
cat <<< "$fzf $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf
tmux set-window-option synchronize-panes off \;\
set-window-option remain-on-exit off \;\
split-window $opt "$envs bash $argsf" $swap \
split-window $opt "printf '\033]2;fzf\033\\'; $envs bash $argsf" $swap \
> /dev/null 2>&1
cat <&0 > $fifo1 &
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment