From 166688ddeb5b01323b5827abcd13a9161e43a791 Mon Sep 17 00:00:00 2001 From: Nuno Agostinho Date: Sat, 21 Nov 2020 02:55:15 +0000 Subject: [PATCH] tmux: add window management commands and small improvements (#4953) --- pages/common/tmux.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pages/common/tmux.md b/pages/common/tmux.md index 88054d7ff4..c5afb470f8 100644 --- a/pages/common/tmux.md +++ b/pages/common/tmux.md @@ -9,7 +9,7 @@ - Start a new named session: -`tmux new-session -s {{name}}` +`tmux new -s {{name}}` - List existing sessions: @@ -17,20 +17,20 @@ - Attach to the most recently used session: -`tmux attach-session` +`tmux attach` -- Attach to a named session: - -`tmux attach-session -t {{name}}` - -- Detach from the current session (with prefix Ctrl-B): +- Detach from the current session (inside a tmux session): `Ctrl-B d` +- Create a new window (inside a tmux session): + +`Ctrl-B c` + +- Switch between sessions and windows (inside a tmux session): + +`Ctrl-B w` + - Kill a session by name: `tmux kill-session -t {{name}}` - -- Kill the current session (with prefix Ctrl-B): - -`Ctrl-B :kill-session`