Enable iTerm integration with TMUX.
This commit is contained in:
parent
6f9c1666e1
commit
6c34a3a7db
2 changed files with 20 additions and 2 deletions
|
@ -30,6 +30,18 @@ in *tmux.conf*:
|
|||
|
||||
set-option -g destroy-unattached [on | off]
|
||||
|
||||
#### OSX iTerm2 Integration
|
||||
|
||||
iTerm2 offers significant integration with tmux. This can be enabled by adding the following line to *zpreztorc*:
|
||||
|
||||
zstyle ':prezto:module:tmux:iterm' integrate 'yes'
|
||||
|
||||
See more information on iTerm2 and tmux integration on the following pages:
|
||||
|
||||
[iTerm2 Download page](http://iterm2.com/downloads.html)
|
||||
|
||||
[iTerm2 and tmux Integration](https://code.google.com/p/iterm2/wiki/TmuxIntegration)
|
||||
|
||||
Aliases
|
||||
-------
|
||||
|
||||
|
|
|
@ -16,6 +16,12 @@ fi
|
|||
#
|
||||
# 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" ]] && ( \
|
||||
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
|
||||
|
@ -32,7 +38,7 @@ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
|
|||
fi
|
||||
|
||||
# Attach to the 'prezto' session or to the last session used.
|
||||
exec tmux attach-session
|
||||
exec tmux $ITERM_INTEGRATION attach-session
|
||||
fi
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue