Some places need multiplexing

This commit is contained in:
Daniel Flanagan 2023-07-05 10:27:34 -05:00
parent aef1472d51
commit 9a18b28b7a
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
2 changed files with 7 additions and 7 deletions

View File

@ -57,11 +57,10 @@ test $PWD = $HOME && begin
cd $NICE_HOME || cd
end
# if status is-interactive
# eval (zellij setup --generate-auto-start fish | string collect)
# end
if status is-interactive; and not set -q TMUX; and not string match '/dev/tty*' (tty)
true
# tmux att -t default || tmux new -s default
# 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
eval (zellij setup --generate-auto-start fish | string collect)
else if set --query FISH_START_TMUX
tmux att -t default || tmux new -s default
end

View File

@ -1,2 +1,3 @@
set --export --universal NOTES_PATH $NICE_HOME/storage/shared/notes
set --export --universal FISH_START_ZELLIJ true