summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorbitraid <bitraid@protonmail.ch>2025-02-13 11:33:31 +0200
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-20 08:30:30 +0900
commitf232df2887552e1a4ebc0447c05dbe9c17beabb8 (patch)
tree8560e61e2493578f26888371f052d474f6287f58 /shell
parent16bfb2c80cd7c81ab7c336bf7b6ea82f3f76eff2 (diff)
downloadfzf-f232df2887552e1a4ebc0447c05dbe9c17beabb8.tar.gz
[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.
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.fish3
1 files changed, 1 insertions, 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"