update tmux
All checks were successful
ci/woodpecker/push/validate_schema Pipeline was successful

This commit is contained in:
JMARyA 2024-12-16 08:59:39 +01:00
parent 67b61cff70
commit b0c4d4e19c
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -3,16 +3,18 @@ obj: application
repo: https://github.com/tmux/tmux repo: https://github.com/tmux/tmux
arch-wiki: https://wiki.archlinux.org/title/tmux arch-wiki: https://wiki.archlinux.org/title/tmux
wiki: https://en.wikipedia.org/wiki/Tmux wiki: https://en.wikipedia.org/wiki/Tmux
rev: 2024-01-15 rev: 2024-12-16
--- ---
# tmux # tmux
tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached. tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.
# Usage # Usage
**New tmux session:** **New tmux session:**
```shell ```shell
tmux
tmux new -s name tmux new -s name
tmux new -s mysession -n mywindow
``` ```
**List existing sessions:** **List existing sessions:**
@ -23,6 +25,7 @@ tmux ls
**Attach to a named session:** **Attach to a named session:**
```shell ```shell
tmux attach -t name tmux attach -t name
tmux a -t name
``` ```
**Kill a session:** **Kill a session:**
@ -31,14 +34,30 @@ tmux kill-session -t name
``` ```
# Keybinds # Keybinds
- Vertical Split: `Ctrl-b %` - Show the time: `Ctrl-b + t`
- Horizontal Split: `Ctrl-b "`
- Select Pane: `Ctrl-b q [num]` ## Sessions
- Change Pane Size: `Ctrl-b Ctrl [Down/Up/Left/Right]` - Rename current session: `Ctrl-b + $`
- Switch sessions: `Ctrl-b s`
- Detach from a running session: `Ctrl-b + d` - Detach from a running session: `Ctrl-b + d`
- Create a new window inside session: `Ctrl-b c` - Sessions and windows overview: `Ctrl-b + w`
- Go to next window: `Ctrl-b n` - Move to previous session: `Ctrl-b + (`
- Switch sessions and windows: `Ctrl-B w` - Move to next session: `Ctrl-b + )`
- Go to window: `Ctrl-b [0-9]` - Switch sessions: `Ctrl-b + s`
- Kill a window: `Ctrl-b x`
## Windows
- Create a new window: `Ctrl-b + c`
- Rename current window: `Ctrl-b + ,`
- Go to previous window: `Ctrl-b + p`
- Go to next window: `Ctrl-b + n`
- Go to window: `Ctrl-b + [0-9]`
## Panes
- Vertical Split: `Ctrl-b + %`
- Horizontal Split: `Ctrl-b + "`
- Select Pane: `Ctrl-b + q + [num]`
- Change Pane Size: `Ctrl-b + Ctrl + [Down/Up/Left/Right]`
- Move current pane left: `Ctrl-b + {`
- Move current pane right: `Ctrl-b + }`
- Close current pane: `Ctrl-b + x`
- Switch to the next pane: `Ctrl-b + o`
- Convert pane into a window: `Ctrl-b + !`