* do not attach tmux when entering in terminal on jetbrains ide
This commit is contained in:
6
.bashrc
6
.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
|
||||
if [[ -n "$PS1" ]] \
|
||||
&& [[ -z "$TMUX" ]] \
|
||||
&& [[ -n "$SSH_CONNECTION" ]] \
|
||||
&& [[ -z "$(env | grep TERMINAL_EMULATOR=JetBrains)" ]] \
|
||||
; then
|
||||
tmux attach || tmux
|
||||
fi
|
||||
|
Reference in New Issue
Block a user