Improve formatting

I noticed that quite a bit of the text was not wrapped appropriately
 and was ruining the display. I have since reduced all lines
 possible to wrap at/before 72 columns
This commit is contained in:
kaernyk 2014-09-10 12:42:05 -04:00
parent f45dbf6a81
commit 9e76a70a6e

View File

@ -8,14 +8,16 @@ filename: LearnTmux.txt
<a href="http://tmux.sourceforge.net/"> <a href="http://tmux.sourceforge.net/">
tmux</a> is a terminal multiplexer: it enables a number of terminals to be tmux</a> is a terminal multiplexer: it enables a number of terminals
created, accessed, and controlled from a single screen. tmux may be detached to be created, accessed, and controlled from a single screen. tmux
from a screen and continue running in the background, then later reattached. may be detached from a screen and continue running in the background
then later reattached.
``` ```
tmux [command] # Run a command tmux [command] # Run a command
# 'tmux' with no commands will create a new session # 'tmux' with no commands will create a new
session
new # Create a new session new # Create a new session
-s "Session" # Create named session -s "Session" # Create named session
@ -52,42 +54,41 @@ from a screen and continue running in the background, then later reattached.
## Key Bindings ## Key Bindings
# The method of controlling an attached tmux session is via key combinations # The method of controlling an attached tmux session is via key
# called 'Prefix' keys. # combinations called 'Prefix' keys.
------------------------------------------------------------------------------
----------------------------------------------------------------------
(C-b) = Ctrl + b # 'Prefix' combination required to use keybinds (C-b) = Ctrl + b # 'Prefix' combination required to use keybinds
(M-1) = Meta + 1 -or- Alt + 1 (M-1) = Meta + 1 -or- Alt + 1
----------------------------------------------------------------------
------------------------------------------------------------------------------ ? # List all key bindings
: # Enter the tmux command prompt
? # List all key bindings. r # Force redraw of the attached client
: # Enter the tmux command prompt. c # Create a new window
r # Force redraw of the attached client.
c # Create a new window.
! # Break the current pane out of the window. ! # Break the current pane out of the window.
% # Split the current pane into two, left and right. % # Split the current pane into two, left and right
" # Split the current pane into two, top and bottom. " # Split the current pane into two, top and bottom
n # Change to the next window. n # Change to the next window
p # Change to the previous window. p # Change to the previous window
{ # Swap the current pane with the previous pane. { # Swap the current pane with the previous pane
} # Swap the current pane with the next pane. } # Swap the current pane with the next pane
s # Select a new session for the attached client interactively. s # Select a new session for the attached client
w # Choose the current window interactively. interactively
0 to 9 # Select windows 0 to 9. w # Choose the current window interactively
0 to 9 # Select windows 0 to 9
d # Detach the current client. d # Detach the current client
D # Choose a client to detach. D # Choose a client to detach
& # Kill the current window. & # Kill the current window
x # Kill the current pane. x # Kill the current pane
Up, Down # Change to the pane above, below, left, or right. Up, Down # Change to the pane above, below, left, or right
Left, Right Left, Right
M-1 to M-5 # Arrange panes: M-1 to M-5 # Arrange panes:
@ -95,12 +96,12 @@ from a screen and continue running in the background, then later reattached.
# 2) even-vertical # 2) even-vertical
# 3) main-horizontal # 3) main-horizontal
# 4) main-vertical # 4) main-vertical
# 5) tiled. # 5) tiled
C-Up, C-Down # Resize the current pane in steps of one cell. C-Up, C-Down # Resize the current pane in steps of one cell
C-Left, C-Right C-Left, C-Right
M-Up, M-Down # Resize the current pane in steps of five cells. M-Up, M-Down # Resize the current pane in steps of five cells
M-Left, M-Right M-Left, M-Right
@ -115,7 +116,7 @@ like how .vimrc or init.el are used.
### Keybinds ### Keybinds
########################################################################### ######################################################################
# Unbind C-b as the default prefix # Unbind C-b as the default prefix
unbind-key C-befix C-a unbind-key C-befix C-a
@ -155,7 +156,7 @@ bind l select-pane -R
### Theme ### Theme
########################################################################### #####################################################################
# Statusbar Color Palette # Statusbar Color Palette
set-option -g status-justify left set-option -g status-justify left
@ -186,7 +187,7 @@ setw -g window-status-activity-fg yellow
### UI ### UI
########################################################################### ######################################################################
# Statusbar # Statusbar
set-option -g status-utf8 on set-option -g status-utf8 on
@ -209,7 +210,9 @@ set -g mouse-select-window on
# Automatically set window titles # Automatically set window titles
set-option -g set-titles on set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
# window number,program name,active (or not)
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
# Statusbar Adjustments # Statusbar Adjustments
set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]' set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
@ -224,7 +227,7 @@ set -g status-interval 3
### Misc ### Misc
########################################################################### ######################################################################
# Scrollback/History limit # Scrollback/History limit
set -g history-limit 4096 set -g history-limit 4096