diff --git a/tag-zsh/zsh/configs/tmux.zsh b/tag-zsh/zsh/configs/tmux.zsh index 35896603..f74e28cd 100644 --- a/tag-zsh/zsh/configs/tmux.zsh +++ b/tag-zsh/zsh/configs/tmux.zsh @@ -2,8 +2,16 @@ _not_inside_tmux() { [[ -z "$TMUX" ]] } +_not_inside_phpstorm() { + if is_macos; then + [[ "$TERM_PROGRAM" != "" ]] + elif is_linux; then + [[ "$TERMINAL_EMULATOR" != "JetBrains"* ]] + fi +} + ensure_tmux_is_running() { - if _not_inside_tmux; then + if _not_inside_tmux && _not_inside_phpstorm; then tat fi }