diff --git a/home/zsh.nix b/home/zsh.nix index c56583b..5280df5 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -101,7 +101,8 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then - tmux attach-session -t $USER || tmux new-session -s $USER + TMUX_EXE="${pkgs.tmux}/bin/tmux" + $TMUX_EXE attach-session -t $USER || $TMUX_EXE new-session -s $USER fi ''; };