diff --git a/home/zsh.nix b/home/zsh.nix index 04de46c..ff97ded 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -101,7 +101,7 @@ if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then TMUX_EXE="${pkgs.tmux}/bin/tmux" - $TMUX_EXE attach-session -t $USER || $TMUX_EXE new-session -s $USER + systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER fi ''; };