From f232df2887552e1a4ebc0447c05dbe9c17beabb8 Mon Sep 17 00:00:00 2001 From: bitraid Date: Thu, 13 Feb 2025 11:33:31 +0200 Subject: [PATCH] [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. --- shell/key-bindings.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index 73e00b23..fe61280d 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -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"