diff --git a/users/profiles/zsh/default.nix b/users/profiles/zsh/default.nix index 88e25cc..68d9a46 100644 --- a/users/profiles/zsh/default.nix +++ b/users/profiles/zsh/default.nix @@ -9,6 +9,12 @@ ]; }; initExtraFirst = '' + if [ -z "$TMUX" ] && [[ $- == *i* ]] + then + (tmux ls | grep -vq attached && tmux at) || tmux + exit + fi + ${builtins.readFile ./p10k.zsh.initfirst} ''; initExtra = ''