mirror of
https://github.com/cheat/cheat.git
synced 2024-12-23 04:59:45 +01:00
b7347a9409
* Detaching an already attached tmux session - great for when you are moving from a phone for example to a laptop and want to utilise the whole real estate you have. * Reloading the configuration file on the fly by using the colon menu
48 lines
706 B
Plaintext
48 lines
706 B
Plaintext
# Start tmux:
|
|
tmux
|
|
|
|
# Detach from tmux:
|
|
Ctrl-b d
|
|
|
|
# Restore tmux session:
|
|
tmux attach
|
|
|
|
# Detach an already attached session (great if you are moving devices with different screen resolutions)
|
|
tmux attach -d
|
|
|
|
# Display session:
|
|
tmux ls
|
|
|
|
# Start a shared session:
|
|
tmux -S /tmp/your_shared_session
|
|
chmod 777 /tmp/your_shared_session
|
|
|
|
# Help screen (Q to quit):
|
|
Ctrl-b ?
|
|
|
|
# Scroll in window:
|
|
Ctrl-b PageUp/PageDown
|
|
|
|
# Reload configuation file
|
|
Ctrl-b : source-file /path/to/file
|
|
|
|
# Window management
|
|
# =================
|
|
|
|
# Create window:
|
|
Ctrl-b c
|
|
|
|
# Destroy window:
|
|
Ctrl-b x
|
|
|
|
# Switch between windows:
|
|
Ctrl-b [0-9]
|
|
or
|
|
Ctrl-b Arrows
|
|
|
|
# Split windows horizontally:
|
|
Ctrl-b %
|
|
|
|
# Split windows vertically:
|
|
Ctrl-b "
|