add wezterm check

This commit is contained in:
Simon Rieger 2024-02-15 14:27:34 +01:00
parent 27d3702f49
commit 2f4da50278
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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