mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 09:19:25 +00:00
committed by
Sorin Ionescu
parent
5232191cbe
commit
fb9a20591f
@ -12,10 +12,10 @@ Starts a tmux session automatically when Zsh is launched.
|
||||
|
||||
To enable this feature, add the following line to *zshrc*:
|
||||
|
||||
zstyle ':omz:module:tmux' auto-start 'yes'
|
||||
zstyle ':prezto:module:tmux' auto-start 'yes'
|
||||
|
||||
It will create a background session named _#OMZ_ and attach every new shell to
|
||||
it.
|
||||
It will create a background session named _#Prezto_ and attach every new shell
|
||||
to it.
|
||||
|
||||
To avoid keeping open sessions, this module sets `destroy-unattached off` on
|
||||
the background session and `destroy-unattached on` on every other session
|
||||
@ -38,7 +38,7 @@ following to *tmux.conf*:
|
||||
set-option -g default-command "reattach-to-user-namespace -l $SHELL -l"
|
||||
|
||||
Furthermore, tmux is known to cause **kernel panics** on Mac OS X. A discussion
|
||||
about this and OMZ has already been [opened][2].
|
||||
about this and Prezto has already been [opened][2].
|
||||
|
||||
Authors
|
||||
-------
|
||||
@ -52,5 +52,5 @@ Authors
|
||||
[2]: http://git.io/jkPqHg
|
||||
[3]: ChrisJohnsen/tmux-MacOSX-pasteboard
|
||||
[4]: mxcl/homebrew
|
||||
[5]: https://github.com/sorin-ionescu/oh-my-zsh/issues
|
||||
[5]: https://github.com/sorin-ionescu/prezto/issues
|
||||
|
||||
|
@ -15,8 +15,8 @@ fi
|
||||
# Auto Start
|
||||
#
|
||||
|
||||
if [[ -z "$TMUX" ]] && zstyle -t ':omz:module:tmux' auto-start; then
|
||||
tmux_session='#OMZ'
|
||||
if [[ -z "$TMUX" ]] && zstyle -t ':prezto:module:tmux' auto-start; then
|
||||
tmux_session='#Prezto'
|
||||
|
||||
if ! tmux has-session -t "$tmux_session" 2> /dev/null; then
|
||||
# Disable the destruction of unattached sessions globally.
|
||||
|
Reference in New Issue
Block a user