From 413b7174847942279a4c70bdf6b86430ff9a5ad4 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Tue, 7 May 2013 00:32:15 +0200 Subject: [PATCH] Ensure that the tmux server is started Signed-off-by: Sorin Ionescu --- modules/tmux/init.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/tmux/init.zsh b/modules/tmux/init.zsh index a4648276..01732750 100644 --- a/modules/tmux/init.zsh +++ b/modules/tmux/init.zsh @@ -19,6 +19,9 @@ if [[ -z "$TMUX" ]] && zstyle -t ':prezto:module:tmux' auto-start; then tmux_session='#Prezto' if ! tmux has-session -t "$tmux_session" 2> /dev/null; then + # Ensure that tmux server is started. + tmux start-server + # Disable the destruction of unattached sessions globally. tmux set-option -g destroy-unattached off &> /dev/null