Guide: Update formatting. Add keyboard icons

This commit is contained in:
Graphene 2017-08-19 14:24:21 +03:00 committed by GitHub
parent 032efb7662
commit b2de33c17c

View File

@ -1,22 +1,26 @@
# tmux-guide # tmux-guide
tmux: How to use tmux and cheat-sheet for tmux tmux: How to use tmux and cheat-sheet for tmux
Configuration: # Description:
============ **tmux** is a terminal multiplexer which is able to preserve terminal sessions. It is also able to split your terminal window horizontally or programatically.
# Configuration:
Make sure to create a configuration in your local folder: Make sure to create a configuration in your local folder:
~.tmux.conf
`~.tmux.conf`
If your username is John, then your file should be located at somewhere like: If your username is John, then your file should be located at somewhere like:
/home/john/.tmux.conf
Cheat sheet: `/home/john/.tmux.conf`
============
# Cheat sheet:
### Launching a command:
Ctrl+b <command> Ctrl+b <command>
NOTE: First press together [Ctrl] and [b] buttons. Then release your fingers from then and press [b].
NOTE: First press together keyboard keys <kbd>Ctrl</kbd> and <kbd>b</kbd> buttons. Then release your fingers from then and press <kbd>b</kbd>. Do not laugh, a lot of people don't get it right. ;)
Commands # Commands
============ ### Windows:
Windows:
c - window: create c - window: create
, - window: rename , - window: rename
p - window: previous p - window: previous
@ -24,19 +28,19 @@ Commands
w - window: select available windows w - window: select available windows
s - window: list all sessions s - window: list all sessions
Splits: ### Splits:
% - Split: Vertical % - Split: Vertical
" - Split: Horizontal " - Split: Horizontal
Misc: #### Misc
: - Commands: Run a custom named command which you have created (e.g. "split-windows") : - Commands: Run a custom named command which you have created (e.g. "split-windows")
Panes: ### Panes:
q - Pane: Show numbers q - Pane: Show numbers
x - Pane: Kill x - Pane: Kill
o - Panes: Swap o - Panes: Swap
Sessions: ### Sessions:
tmux new -s session-name tmux new -s session-name
tmux list-sessions tmux list-sessions
tmux attach -t session-name tmux attach -t session-name