home/zsh: add full nix path for tmux

This commit is contained in:
Asmir A 2023-11-19 12:43:44 +01:00
parent a756a9fa7e
commit c79e8bb097
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -101,7 +101,8 @@
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then 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 fi
''; '';
}; };