Zellij auto attach

This commit is contained in:
Daniel Flanagan 2023-07-07 21:04:19 -05:00
parent c68b08d692
commit 09e48ac8fb
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -60,6 +60,8 @@ 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
set ZELLIJ_AUTO_ATTACH true
set ZELLIJ_AUTO_EXIT true
eval (zellij setup --generate-auto-start fish | string collect)
else if set --query FISH_START_TMUX
tmux att -t default || tmux new -s default