You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
13 years ago
|
Tmux
|
||
13 years ago
|
====
|
||
13 years ago
|
|
||
13 years ago
|
Defines [tmux][1] aliases and provides for auto launching it at start-up.
|
||
13 years ago
|
|
||
|
Settings
|
||
|
--------
|
||
|
|
||
13 years ago
|
### Auto-Start
|
||
13 years ago
|
|
||
13 years ago
|
Starts a tmux session automatically when Zsh is launched.
|
||
13 years ago
|
|
||
12 years ago
|
To enable this feature when launching Zsh in a local terminal, add the
|
||
|
following line to *zpreztorc*:
|
||
13 years ago
|
|
||
12 years ago
|
zstyle ':prezto:module:tmux:auto-start' local 'yes'
|
||
13 years ago
|
|
||
12 years ago
|
To enable this feature when launching Zsh in a SSH connection, add the
|
||
|
following line to *zpreztorc*:
|
||
|
|
||
|
zstyle ':prezto:module:tmux:auto-start' remote 'yes'
|
||
|
|
||
|
In both cases, it will create a background session named _#Prezto_ and attach
|
||
|
every new shell to it.
|
||
13 years ago
|
|
||
13 years ago
|
To avoid keeping open sessions, this module sets `destroy-unattached off` on
|
||
13 years ago
|
the background session and `destroy-unattached on` on every other session
|
||
|
(global setting).
|
||
13 years ago
|
|
||
13 years ago
|
Aliases
|
||
|
-------
|
||
|
|
||
12 years ago
|
- `tmuxa` attaches or switches to a tmux session.
|
||
|
- `tmuxl` lists sessions managed by the tmux server.
|
||
13 years ago
|
|
||
13 years ago
|
Caveats
|
||
|
-------
|
||
|
|
||
13 years ago
|
On Mac OS X, launching tmux can cause the error **launch_msg(...): Socket is not
|
||
|
connected** to be displayed, which can be fixed by installing
|
||
|
[reattach-to-user-namespace][3], available in [Homebrew][4], and adding the
|
||
|
following to *tmux.conf*:
|
||
|
|
||
13 years ago
|
set-option -g default-command "reattach-to-user-namespace -l $SHELL -l"
|
||
13 years ago
|
|
||
|
Furthermore, tmux is known to cause **kernel panics** on Mac OS X. A discussion
|
||
12 years ago
|
about this and Prezto has already been [opened][2].
|
||
13 years ago
|
|
||
|
Authors
|
||
|
-------
|
||
|
|
||
13 years ago
|
*The authors of this module should be contacted via the [issue tracker][5].*
|
||
13 years ago
|
|
||
13 years ago
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
||
|
- [Colin Hebert](https://github.com/ColinHebert)
|
||
12 years ago
|
- [Georges Discry](https://github.com/gdiscry)
|
||
13 years ago
|
|
||
|
[1]: http://tmux.sourceforge.net
|
||
12 years ago
|
[2]: https://github.com/sorin-ionescu/prezto/issues/62
|
||
|
[3]: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
|
||
|
[4]: https://github.com/mxcl/homebrew
|
||
12 years ago
|
[5]: https://github.com/sorin-ionescu/prezto/issues
|
||
13 years ago
|
|