Skip to content
Myr

[fzf-tmux] Ensure that the same $TERM value is used in split

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

Fix #305. ncurses can crash on invalid $TERM. fzf-tmux uses bash on a new pane so we have to make sure that the $TERM is consistent with that of the hosting shell.

authored by Junegunn Choi · committed by Junegunn Choi · parent fcae99f · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:bin/fzf-tmux+1 added-1 removed
105 unmodified lines
106}107fzf="$(which fzf 2> /dev/null)" || fzf="$(dirname "$0")/fzf"108[ -x "$fzf" ] || fail "fzf executable not found"109110envs="env "110envs="env TERM=$TERM "111[ -n "$FZF_DEFAULT_OPTS" ] && envs="$envs FZF_DEFAULT_OPTS=$(printf %q "$FZF_DEFAULT_OPTS")"112[ -n "$FZF_DEFAULT_COMMAND" ] && envs="$envs FZF_DEFAULT_COMMAND=$(printf %q "$FZF_DEFAULT_COMMAND")"113114mkfifo $fifo2
22 unmodified lines