Skip to content
Myr

[fzf-tmux] Executes fzf from fzf-tmux with a process name (#1056)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ricardo González · committed by Junegunn Choi · parent 45d4c57 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:bin/fzf-tmux+2 added-2 removed
176 unmodified lines
177if [[ -n "$term" ]] || [[ -t 0 ]]; then178 cat <<< "\"$fzf\" $opts > $fifo2; echo \$? > $fifo3 $close" >> $argsf179 TMUX=$(echo $TMUX | cut -d , -f 1,2) tmux set-window-option synchronize-panes off \;\180 set-window-option remain-on-exit off \;\181 split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap \181 split-window $opt "$envs bash -c 'cd $(printf %q "$PWD"); exec -a fzf bash $argsf'" $swap \182 > /dev/null 2>&1183else184 mkfifo $fifo1185 cat <<< "\"$fzf\" $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" >> $argsf186 TMUX=$(echo $TMUX | cut -d , -f 1,2) tmux set-window-option synchronize-panes off \;\187 set-window-option remain-on-exit off \;\188 split-window $opt "$envs bash $argsf" $swap \188 split-window $opt "$envs bash -c 'exec -a fzf bash $argsf'" $swap \189 > /dev/null 2>&1190 cat <&0 > $fifo1 &191fi192cat $fifo2
2 unmodified lines