* do not attach tmux when entering in terminal on jetbrains ide

This commit is contained in:
2025-02-28 10:59:29 +03:00
parent fe8bac6ff8
commit 839c709f3a

View File

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