From 1f0998886488251d7d362dcc9409efd6bb310472 Mon Sep 17 00:00:00 2001 From: c0de Date: Sun, 17 Jan 2021 19:26:12 -0600 Subject: [PATCH] disable tmux autoattach settings --- home/.environment | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/home/.environment b/home/.environment index 10c57b3..46be25b 100644 --- a/home/.environment +++ b/home/.environment @@ -25,20 +25,20 @@ export DISABLE_DOTFILES_UPDATE_PROMPT=false export UPDATE_DOTFILES_DAYS=13 # Whether or not to automatically connect to a TMUX session when opening the shell -export ENABLE_TMUXAC=false +#export ENABLE_TMUXAC=false # If there is not an active tmux session, we probably want one # Otherwise, the shell will not open the session again (eg. opening tabs, new terminals) -if $(tmux list-sessions >> /dev/null 2>&1); then - export TMUXATT=true -else - export TMUXATT=false -fi +#if $(tmux list-sessions >> /dev/null 2>&1); then +# export TMUXATT=true +#else +# export TMUXATT=false +#fi # Automatically attach tmux session "C0DE" -if [[ -z "$TMUX" && "$TMUXATT" && "$ENABLE_TMUXAC" ]]; then - tmux attach -t C0DE || tmux new -s C0DE -fi +#if [[ -z "$TMUX" && "$TMUXATT"==true && "$ENABLE_TMUXAC"==true ]]; then +# tmux attach -t C0DE || tmux new -s C0DE +#fi # Enable shell-history for interactive shells # https://github.com/pawamoy/shell-history