diff --git a/.bash_aliases b/.bash_aliases index c94a378..a27a493 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -47,7 +47,9 @@ if [ -e ~/.bash_secrets ]; then fi if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then - exec tmux + if ! pstree -s $$ | grep -wq code; then + exec tmux >/dev/null 2>&1 + fi fi # Set the default terminal to use konsole, with kapper profile