diff --git a/zsh/zshrc b/zsh/zshrc index 9f537e8..b7f0fb4 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -23,8 +23,6 @@ plug "zap-zsh/exa" plug "zap-zsh/fzf" plug "fdellwing/zsh-bat" plug "lukechilds/zsh-nvm" -TMUX_MOTD=false -plug "zpm-zsh/tmux" # source external stuff eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) @@ -46,3 +44,8 @@ if [ -d "$HOME/.config/plasma-workspace/env" ]; then source "$sh" done fi + +# load tmux if it exists and we're not in it +if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ linux ]] && [ -z "$TMUX" ]; then + exec tmux +fi