From c79e8bb097a710bc41628cbb458f926b77dc681d Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 19 Nov 2023 12:43:44 +0100 Subject: [PATCH] home/zsh: add full nix path for tmux --- home/zsh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ''; };