From 2f4da50278f089e0ff57665b07608afb76f91657 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 15 Feb 2024 14:27:34 +0100 Subject: [PATCH] add wezterm check --- .chezmoitemplates/zshrc_darwin.tmpl | 2 +- .chezmoitemplates/zshrc_linux.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.chezmoitemplates/zshrc_darwin.tmpl b/.chezmoitemplates/zshrc_darwin.tmpl index ec3b80f..3e63c5f 100644 --- a/.chezmoitemplates/zshrc_darwin.tmpl +++ b/.chezmoitemplates/zshrc_darwin.tmpl @@ -131,6 +131,6 @@ export EDITOR=vim source <(/opt/homebrew/bin/starship init zsh --print-full-init) -if [ -x "$(command -v tmux)" ] && [ -z "${TMUX}" ]; then +if [ -x "$(command -v tmux)" ] && [ -z "${TMUX}" ] && [ -n "${WEZTERM_CONFIG_DIR}" ]; then exec tmux new-session -A -s ${USER} >/dev/null 2>&1 fi diff --git a/.chezmoitemplates/zshrc_linux.tmpl b/.chezmoitemplates/zshrc_linux.tmpl index 67d71da..047ec50 100644 --- a/.chezmoitemplates/zshrc_linux.tmpl +++ b/.chezmoitemplates/zshrc_linux.tmpl @@ -130,6 +130,6 @@ eval "$(starship init zsh)" test -e "$HOME/.shellfishrc" && source "$HOME/.shellfishrc" -if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ]; then +if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ] && [ -n "${WEZTERM_CONFIG_DIR}" ]; then exec tmux new-session -A -s ${USER} >/dev/null 2>&1 fi