Add example of tmux shortcut key to README

This commit is contained in:
Iwasaki Yudai 2015-08-17 00:04:33 -07:00
parent 87f8409068
commit 5e3796d644

View File

@ -56,6 +56,15 @@ $ tmux new -A -s gotty
By using terminal multiplexers, you can have the control of your terminal and allow clients to just see your screen. By using terminal multiplexers, you can have the control of your terminal and allow clients to just see your screen.
### Quick Sharing on tmux
To share your current session with others by a shortcut key, you can add a line like below to your `.tmux.conf`.
```
# Start gotty in a new window with C-t
bind-key C-t new-window "gotty tmux attach -t `tmux display -p '#S'`"
```
## Playing with Docker ## Playing with Docker
When you want to create a jailed environment for each client, you can use Docker containers like following: When you want to create a jailed environment for each client, you can use Docker containers like following: