|
|
@ -17,6 +17,12 @@ fi
|
|
|
|
# Auto Start
|
|
|
|
# Auto Start
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ([[ "$TERM_PROGRAM" = 'iTerm.app' ]] && \
|
|
|
|
|
|
|
|
zstyle -t ':prezto:module:tmux:iterm' integrate \
|
|
|
|
|
|
|
|
); then
|
|
|
|
|
|
|
|
_tmux_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 ) ||
|
|
|
|
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
|
|
|
|
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
|
|
|
@ -32,12 +38,12 @@ 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 "$_tmux_iterm_integration" attach-session
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Aliases
|
|
|
|
# Aliases
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
alias tmuxa='tmux attach-session'
|
|
|
|
alias tmuxa="tmux $_tmux_iterm_integration attach-session"
|
|
|
|
alias tmuxl='tmux list-sessions'
|
|
|
|
alias tmuxl='tmux list-sessions'
|
|
|
|