From 839c709f3a0f7fd909edcc6ebf4fcf6853b737e9 Mon Sep 17 00:00:00 2001 From: Raptor Dimti Garuda Date: Fri, 28 Feb 2025 10:59:29 +0300 Subject: [PATCH] * do not attach tmux when entering in terminal on jetbrains ide --- .bashrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 494a451..bbac1a2 100644 --- a/.bashrc +++ b/.bashrc @@ -84,6 +84,10 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # auto into tmux session -if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then - tmux attach || tmux +if [[ -n "$PS1" ]] \ + && [[ -z "$TMUX" ]] \ + && [[ -n "$SSH_CONNECTION" ]] \ + && [[ -z "$(env | grep TERMINAL_EMULATOR=JetBrains)" ]] \ + ; then + tmux attach || tmux fi