* do not attach tmux when entering in terminal on jetbrains ide
This commit is contained in:
8
.bashrc
8
.bashrc
@ -84,6 +84,10 @@ export NVM_DIR="$HOME/.nvm"
|
|||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|
||||||
# auto into tmux session
|
# auto into tmux session
|
||||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
if [[ -n "$PS1" ]] \
|
||||||
tmux attach || tmux
|
&& [[ -z "$TMUX" ]] \
|
||||||
|
&& [[ -n "$SSH_CONNECTION" ]] \
|
||||||
|
&& [[ -z "$(env | grep TERMINAL_EMULATOR=JetBrains)" ]] \
|
||||||
|
; then
|
||||||
|
tmux attach || tmux
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user