dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 682255ff81324d1bf644ee5a65bf2adf87114263
parent 3025bed3d7dad216f482e45c4eead96d0ce0ffed
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Wed, 24 Jun 2020 02:30:48 -0400

Add tmux autostart to bashrc

Diffstat:
M.bashrc | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -76,3 +76,14 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +# Start tmux automatically (or attach to existing session) if: +# 1. this is an interactive shell +# 2. TERM variable does not indicate we are in a screen or tmux session already +# 3. The environment variable TMUX is not set +if [ -n "$PS1" ] && + [ ! "$TERM" = "screen" ] && + [ ! "$TERM" = "tmux" ] && + [ -z "$TMUX" ]; then + exec tmux +fi