|
|
|
@ -25,10 +25,10 @@ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
|
|
|
|
|
|
|
|
|
|
# Create a 'prezto' session if no session has been defined in tmux.conf.
|
|
|
|
|
if ! tmux has-session 2> /dev/null; then
|
|
|
|
|
tmux_session='prezto'
|
|
|
|
|
zstyle -s ':prezto:module:tmux' session 'session' || session='prezto'
|
|
|
|
|
tmux \
|
|
|
|
|
new-session -d -s "$tmux_session" \; \
|
|
|
|
|
set-option -t "$tmux_session" destroy-unattached off &> /dev/null
|
|
|
|
|
new-session -d -s "$session" \; \
|
|
|
|
|
set-option -t "$session" destroy-unattached off &> /dev/null
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Attach to the 'prezto' session or to the last session used.
|
|
|
|
|