From def720f604898b63dbc0a908244e61ef024b4f6a Mon Sep 17 00:00:00 2001 From: Xavier Cambar Date: Wed, 12 Mar 2014 16:59:00 +0100 Subject: [PATCH] refs #544 Only creates default session if none created in tmux.conf --- modules/tmux/init.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/tmux/init.zsh b/modules/tmux/init.zsh index c6c3626f..327ce384 100644 --- a/modules/tmux/init.zsh +++ b/modules/tmux/init.zsh @@ -23,7 +23,9 @@ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \ ); then tmux_session='prezto' - # Create a first 'prezto' session if tmux is starting. + tmux start-server + # Create a first 'prezto' session if tmux is starting + # and no session has been created. if ! tmux has-session 2> /dev/null; then tmux \ start-server \; \