Browse Source

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

master
Raptor Dimti Garuda 1 month ago
parent
commit
839c709f3a
  1. 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
# 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
Loading…
Cancel
Save