From 5e3796d6447022af48055ea7e09384083bb7160f Mon Sep 17 00:00:00 2001 From: Iwasaki Yudai Date: Mon, 17 Aug 2015 00:04:33 -0700 Subject: [PATCH] Add example of tmux shortcut key to README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f3b2323..3f0c7fe 100644 --- a/README.md +++ b/README.md @@ -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. +### 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 When you want to create a jailed environment for each client, you can use Docker containers like following: