mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 23:08:00 +00:00
Ensure that the tmux server is started
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
parent
23f62774f9
commit
413b717484
@ -19,6 +19,9 @@ if [[ -z "$TMUX" ]] && zstyle -t ':prezto:module:tmux' auto-start; then
|
|||||||
tmux_session='#Prezto'
|
tmux_session='#Prezto'
|
||||||
|
|
||||||
if ! tmux has-session -t "$tmux_session" 2> /dev/null; then
|
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.
|
# Disable the destruction of unattached sessions globally.
|
||||||
tmux set-option -g destroy-unattached off &> /dev/null
|
tmux set-option -g destroy-unattached off &> /dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user