From afed5fa6bbb6bc2733a3cadcb940d6599823b59d Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 8 Jul 2023 01:33:24 -0500 Subject: [PATCH] Nest --- common/fish/config.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fish/config.fish b/common/fish/config.fish index c9c6663..c62e5a7 100755 --- a/common/fish/config.fish +++ b/common/fish/config.fish @@ -59,11 +59,11 @@ end # If we're running the shell interactively from inside Kitty, assume that we will be using Kitty's multiplexing features # Otherwise, assume we're in a context that is not capable of "native" multiplexing features and run everything inside Zellij -if set --query FISH_START_ZELLIJ && status is-interactive +if not set --query ZELLIJ && set --query FISH_START_ZELLIJ && status is-interactive # simulate auto attach zellij attach -c # simulate auto kill kill $fish_pid -else if set --query FISH_START_TMUX && status is-interactive +else if not set --query TMUX && set --query FISH_START_TMUX && status is-interactive tmux att -t default || tmux new -s default end \ No newline at end of file