Enable iTerm integration with TMUX.
This commit is contained in:
parent
6c34a3a7db
commit
99d85659e8
2 changed files with 10 additions and 1 deletions
|
@ -13,6 +13,12 @@ if (( ! $+commands[tmux] )); then
|
|||
return 1
|
||||
fi
|
||||
|
||||
if ( [[ $TERM_PROGRAM = iTerm.app ]] && \
|
||||
zstyle -t ':prezto:module:tmux:iterm' integrate \
|
||||
); then
|
||||
ITERM_INTEGRATION=-CC
|
||||
fi
|
||||
|
||||
#
|
||||
# Auto Start
|
||||
#
|
||||
|
@ -45,5 +51,5 @@ fi
|
|||
# Aliases
|
||||
#
|
||||
|
||||
alias tmuxa='tmux attach-session'
|
||||
alias tmuxa='tmux $ITERM_INTEGRATION attach-session'
|
||||
alias tmuxl='tmux list-sessions'
|
||||
|
|
|
@ -152,3 +152,6 @@ zstyle ':prezto:module:prompt' theme 'sorin'
|
|||
|
||||
# Auto start a session when Zsh is launched in a SSH connection.
|
||||
# zstyle ':prezto:module:tmux:auto-start' remote 'yes'
|
||||
|
||||
# Integrate iTerm with Tmux (see: https://code.google.com/p/iterm2/wiki/TmuxIntegration )
|
||||
# zstyle ':prezto:module:tmux:iterm' integrate 'true'
|
||||
|
|
Loading…
Add table
Reference in a new issue