Browse Source

Ensure that the tmux server is started

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
master
Colin Hebert 11 years ago committed by Sorin Ionescu
parent
commit
413b717484
  1. 3
      modules/tmux/init.zsh

3
modules/tmux/init.zsh

@ -19,6 +19,9 @@ if [[ -z "$TMUX" ]] && zstyle -t ':prezto:module:tmux' auto-start; then @@ -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

Loading…
Cancel
Save