[fish] __fzfcmd: Don't set FZF_TMUX

The FZF_TMUX variable check has already been changed from numeric to
string, so there is no need to set it to 0 if it's empty or undefined.
This commit is contained in:
bitraid
2025-02-13 11:33:31 +02:00
committed by Junegunn Choi
parent 16bfb2c80c
commit f232df2887

View File

@@ -109,8 +109,7 @@ function fzf_key_bindings
end
function __fzfcmd
test -n "$FZF_TMUX"; or set FZF_TMUX 0
test -n "$FZF_TMUX_HEIGHT"; or set FZF_TMUX_HEIGHT 40%
test -n "$FZF_TMUX_HEIGHT"; or set -l FZF_TMUX_HEIGHT 40%
if test -n "$FZF_TMUX_OPTS"
echo "fzf-tmux $FZF_TMUX_OPTS -- "
else if test "$FZF_TMUX" = "1"