|
|
@ -16,6 +16,12 @@ fi
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Auto Start
|
|
|
|
# Auto Start
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
ITERM_INTEGRATION=
|
|
|
|
|
|
|
|
if ([[ $TERM_PROGRAM = iTerm.app ]] && \
|
|
|
|
|
|
|
|
zstyle -t ':prezto:module:tmux:iterm' integrate \
|
|
|
|
|
|
|
|
); then
|
|
|
|
|
|
|
|
ITERM_INTEGRATION=-CC
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
|
|
|
|
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
|
|
|
|
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
|
|
|
|
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
|
|
|
@ -32,7 +38,7 @@ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Attach to the 'prezto' session or to the last session used.
|
|
|
|
# Attach to the 'prezto' session or to the last session used.
|
|
|
|
exec tmux attach-session
|
|
|
|
exec tmux $ITERM_INTEGRATION attach-session
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|