From d4ac0e6f7baf8531145127256c8251dd60a6cfac Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 14 Oct 2020 16:36:42 +0200 Subject: [PATCH] [ADD][BASH] Launch tmux at launch --- bash/.bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index 20114b1..8e86a6b 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -65,3 +65,8 @@ source /usr/share/fzf/key-bindings.bash # Enable fzf completion source /usr/share/fzf/completion.bash + +# Launch tmux with a default session +if [ -z "$TMUX" ]; then + exec tmux new-session -As default +fi