Skip to content
Myr

[fzf-tmux] Exit with the same exit status as with fzf

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

authored by Junegunn Choi · committed by Junegunn Choi · parent ca19762 · 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
100 unmodified lines
101trap cleanup EXIT SIGINT SIGTERM102103fail() {104 >&2 echo "$1"105 exit 1105 exit 2106}107fzf="$(which fzf 2> /dev/null)" || fzf="$(dirname "$0")/fzf"108[ -x "$fzf" ] || fail "fzf executable not found"109
23 unmodified lines
133 split-window $opt "$envs bash $argsf" $swap134 cat <&0 > $fifo1 &135fi136cat $fifo2137[ "$(cat $fifo3)" = '0' ]137exit "$(cat $fifo3)"138