From f45dbf6a81faf3d44cc9120915cb8a49794154bc Mon Sep 17 00:00:00 2001 From: kaernyk Date: Tue, 9 Sep 2014 21:54:24 -0400 Subject: test --- tmux.html.markdown | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 241 insertions(+) create mode 100644 tmux.html.markdown (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown new file mode 100644 index 00000000..516bee4d --- /dev/null +++ b/tmux.html.markdown @@ -0,0 +1,241 @@ +--- +category: tool +tool: tmux +contributors: + - ["kaernyk", "http://github.com/kaernyk"] +filename: LearnTmux.txt +--- + + + +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 [command] # Run a command + # 'tmux' with no commands will create a new session + + new # Create a new session + -s "Session" # Create named session + -n "Window" # Create named Window + -c "/dir" # Start in target directory + + attach # Attach last/available session + -t "#" # Attach target session + -d # Detach the session from other instances + + ls # List open sessions + -a # List all open sessions + + lsw # List windows + -a # List all windows + -s # List all windows in session + + lsp # List panes + -a # List all panes + -s # List all panes in session + -t # List app panes in target + + kill-window # Kill current window + -t "#" # Kill target window + -a # Kill all windows + -a -t "#" # Kill all windows but the target + + kill-session # Kill current session + -t "#" # Kill target session + -a # Kill all sessions + -a -t "#" # Kill all sessions but the target + + + +## Key Bindings + +# The method of controlling an attached tmux session is via key combinations +# called 'Prefix' keys. + +------------------------------------------------------------------------------ + + (C-b) = Ctrl + b # 'Prefix' combination required to use keybinds + + (M-1) = Meta + 1 -or- Alt + 1 + +------------------------------------------------------------------------------ + + ? # List all key bindings. + : # Enter the tmux command prompt. + r # Force redraw of the attached client. + c # Create a new window. + + ! # Break the current pane out of the window. + % # Split the current pane into two, left and right. + " # Split the current pane into two, top and bottom. + + n # Change to the next window. + p # Change to the previous window. + { # Swap the current pane with the previous pane. + } # Swap the current pane with the next pane. + + s # Select a new session for the attached client interactively. + w # Choose the current window interactively. + 0 to 9 # Select windows 0 to 9. + + d # Detach the current client. + D # Choose a client to detach. + + & # Kill the current window. + x # Kill the current pane. + + Up, Down # Change to the pane above, below, left, or right. + Left, Right + + M-1 to M-5 # Arrange panes: + # 1) even-horizontal + # 2) even-vertical + # 3) main-horizontal + # 4) main-vertical + # 5) tiled. + + C-Up, C-Down # Resize the current pane in steps of one cell. + C-Left, C-Right + + M-Up, M-Down # Resize the current pane in steps of five cells. + M-Left, M-Right + + + +### Configuring ~/.tmux.conf + + tmux.conf can be used to set options automatically on start up, much +like how .vimrc or init.el are used. + +# Example tmux.conf +# 2014.9 + + +### Keybinds +########################################################################### + +# Unbind C-b as the default prefix +unbind-key C-befix C-a + +# Return to previous window when prefix is pressed twice +bind-key C-a last-window +bind-key ` last-window + +# Allow swapping C-a and ` using F11/F12 +bind-key F11 set-option -g prefix C-a +bind-key F12 set-option -g prefix ` + +# Activate inner-most session (when nesting tmux) +# to send commands +bind-key a send-prefix + +# Index Start +set -g base-index 1 + +# Window Cycle/Swap +bind e previous-window +bind f next-window +bind E swap-window -t -1 +bind F swap-window -t +1 + +# easy-to-remember split pane commands +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# moving between panes with vim movement keys +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + + +### Theme +########################################################################### + +# Statusbar Color Palette +set-option -g status-justify left +set-option -g status-bg black +set-option -g status-fg white +set-option -g status-left-length 40 +set-option -g status-right-length 80 + +# Pane Border Color Palette +set-option -g pane-active-border-fg green +set-option -g pane-active-border-bg black +set-option -g pane-border-fg white +set-option -g pane-border-bg black + +# Message Color Palette +set-option -g message-fg black +set-option -g message-bg green + +# Window Status Color Palette +setw -g window-status-bg black +setw -g window-status-current-fg green +setw -g window-status-bell-attr default +setw -g window-status-bell-fg red +setw -g window-status-content-attr default +setw -g window-status-content-fg yellow +setw -g window-status-activity-attr default +setw -g window-status-activity-fg yellow + + +### UI +########################################################################### + +# Statusbar +set-option -g status-utf8 on + +# Keybind preference +setw -g mode-keys vi +set-option -g status-keys vi + +# Notification +setw -g monitor-activity on +set -g visual-activity on +set-option -g bell-action any +set-option -g visual-bell off + +# Mouse +setw -g mode-mouse on +set-option -g mouse-select-pane on +set -g mouse-resize-pane on +set -g mouse-select-window on + +# Automatically set window titles +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) + +# Statusbar Adjustments +set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default] ' +set -g status-interval 3 + +# Statusbar with right-aligned Date / Time +#set -g status-right ' #[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default] ' + +# Show performance counters in statusbar +# Requires https://github.com/thewtex/tmux-mem-cpu-load/ +#set -g status-right ' #[fg=green]][#[fg=white] #(tmux-mem-cpu-load 5 4) #[fg=green]][ #[fg=yellow]%H:%M#[default] ' + + +### Misc +########################################################################### + +# Scrollback/History limit +set -g history-limit 4096 + +bind r source-file ~/.tmux.conf +``` + +### External Resources + +Tmux | Home
+Tmux Manual page
+Archlinux Wiki
+Gentoo Wiki
+Display CPU/MEM % in statusbar
-- cgit v1.2.3 From 9e76a70a6edd5ca3c33213730acdb795881ea422 Mon Sep 17 00:00:00 2001 From: kaernyk Date: Wed, 10 Sep 2014 12:42:05 -0400 Subject: 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 --- tmux.html.markdown | 81 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 39 deletions(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index 516bee4d..8d7aa752 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -8,14 +8,16 @@ filename: LearnTmux.txt -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. ``` 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 -s "Session" # Create named session @@ -52,42 +54,41 @@ from a screen and continue running in the background, then later reattached. ## Key Bindings -# The method of controlling an attached tmux session is via key combinations -# called 'Prefix' keys. - ------------------------------------------------------------------------------- +# The method of controlling an attached tmux session is via key +# combinations called 'Prefix' keys. +---------------------------------------------------------------------- (C-b) = Ctrl + b # 'Prefix' combination required to use keybinds (M-1) = Meta + 1 -or- Alt + 1 +---------------------------------------------------------------------- ------------------------------------------------------------------------------- - - ? # List all key bindings. - : # Enter the tmux command prompt. - r # Force redraw of the attached client. - c # Create a new window. + ? # List all key bindings + : # Enter the tmux command prompt + r # Force redraw of the attached client + c # Create a new window ! # Break the current pane out of the window. - % # Split the current pane into two, left and right. - " # Split the current pane into two, top and bottom. + % # Split the current pane into two, left and right + " # Split the current pane into two, top and bottom - n # Change to the next window. - p # Change to the previous window. - { # Swap the current pane with the previous pane. - } # Swap the current pane with the next pane. + n # Change to the next window + p # Change to the previous window + { # Swap the current pane with the previous pane + } # Swap the current pane with the next pane - s # Select a new session for the attached client interactively. - w # Choose the current window interactively. - 0 to 9 # Select windows 0 to 9. + s # Select a new session for the attached client + interactively + w # Choose the current window interactively + 0 to 9 # Select windows 0 to 9 - d # Detach the current client. - D # Choose a client to detach. + d # Detach the current client + D # Choose a client to detach - & # Kill the current window. - x # Kill the current pane. + & # Kill the current window + 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 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 # 3) main-horizontal # 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 - 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 @@ -115,7 +116,7 @@ like how .vimrc or init.el are used. ### Keybinds -########################################################################### +###################################################################### # Unbind C-b as the default prefix unbind-key C-befix C-a @@ -155,7 +156,7 @@ bind l select-pane -R ### Theme -########################################################################### +##################################################################### # Statusbar Color Palette set-option -g status-justify left @@ -186,7 +187,7 @@ setw -g window-status-activity-fg yellow ### UI -########################################################################### +###################################################################### # Statusbar set-option -g status-utf8 on @@ -209,22 +210,24 @@ set -g mouse-select-window on # Automatically set window titles 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 -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]' set -g status-interval 3 # Statusbar with right-aligned Date / Time -#set -g status-right ' #[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default] ' +#set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]' # Show performance counters in statusbar # Requires https://github.com/thewtex/tmux-mem-cpu-load/ -#set -g status-right ' #[fg=green]][#[fg=white] #(tmux-mem-cpu-load 5 4) #[fg=green]][ #[fg=yellow]%H:%M#[default] ' +#set -g status-right '#[fg=green]][#[fg=white] #(tmux-mem-cpu-load 5 4) #[fg=green]][ #[fg=yellow]%H:%M#[default]' ### Misc -########################################################################### +###################################################################### # Scrollback/History limit set -g history-limit 4096 -- cgit v1.2.3 From fd29de7f5904f75bd00c7e74652803eac11a994b Mon Sep 17 00:00:00 2001 From: jmaud Date: Tue, 7 Oct 2014 16:55:40 -0400 Subject: Adjustments to Style & Content Style changes - Site format has changed back to ~80 columns, certain rows have had line breaks removed. - Indentation has been adjusted globally to give additional space and consistency. - Configuring Tmux has been separated due to long lines causing the entire page to scroll horizontally and block text. - tmux.conf has been reorganized to better explain settings categorically to new users. Content Changes - Unmapping the prefix key contained erroneous data - Misc section and it's contained "bind r source.." setting are superfluous, as when this points to the next file to use in the configuration, not the current file. Since no additional configuration files have been used, it has been removed. --- tmux.html.markdown | 176 +++++++++++++++++++++++++---------------------------- 1 file changed, 82 insertions(+), 94 deletions(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index 8d7aa752..1fe97699 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -2,22 +2,23 @@ category: tool tool: tmux contributors: - - ["kaernyk", "http://github.com/kaernyk"] + - ["kaernyk", "https://github.com/kaernyk"] + - ["jmaud". "https://github.com/jmaud"] filename: LearnTmux.txt --- -tmux is a terminal multiplexer: it enables a number of terminals -to be created, accessed, and controlled from a single screen. 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 [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 -s "Session" # Create named session @@ -54,7 +55,7 @@ then later reattached. ## Key Bindings -# The method of controlling an attached tmux session is via key +# The method of controlling an attached tmux session is via key # combinations called 'Prefix' keys. ---------------------------------------------------------------------- @@ -63,47 +64,48 @@ then later reattached. (M-1) = Meta + 1 -or- Alt + 1 ---------------------------------------------------------------------- - ? # List all key bindings - : # Enter the tmux command prompt - r # Force redraw of the attached client - c # Create a new window + ? # List all key bindings + : # Enter the tmux command prompt + r # Force redraw of the attached client + c # Create a new window - ! # Break the current pane out of the window. - % # Split the current pane into two, left and right - " # Split the current pane into two, top and bottom + ! # Break the current pane out of the window. + % # Split the current pane into two, left and right + " # Split the current pane into two, top and bottom - n # Change to the next window - p # Change to the previous window - { # Swap the current pane with the previous pane - } # Swap the current pane with the next pane + n # Change to the next window + p # Change to the previous window + { # Swap the current pane with the previous pane + } # Swap the current pane with the next pane - s # Select a new session for the attached client + s # Select a new session for the attached client interactively - w # Choose the current window 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 # Choose a client to detach + d # Detach the current client + D # Choose a client to detach - & # Kill the current window - x # Kill the current pane + & # Kill the current window + x # Kill the current pane - Up, Down # Change to the pane above, below, left, or right - Left, Right + Up, Down # Change to the pane above, below, left, or right + Left, Right - M-1 to M-5 # Arrange panes: - # 1) even-horizontal - # 2) even-vertical - # 3) main-horizontal - # 4) main-vertical - # 5) tiled + M-1 to M-5 # Arrange panes: + # 1) even-horizontal + # 2) even-vertical + # 3) main-horizontal + # 4) main-vertical + # 5) tiled - C-Up, C-Down # Resize the current pane in steps of one cell - C-Left, C-Right + C-Up, C-Down # Resize the current pane in steps of one cell + C-Left, C-Right - M-Up, M-Down # Resize the current pane in steps of five cells - M-Left, M-Right + M-Up, M-Down # Resize the current pane in steps of five cells + M-Left, M-Right +``` ### Configuring ~/.tmux.conf @@ -111,15 +113,36 @@ then later reattached. tmux.conf can be used to set options automatically on start up, much like how .vimrc or init.el are used. +``` # Example tmux.conf -# 2014.9 +# 2014.10 + + +### General +########################################################################### + +# Enable UTF-8 +setw -g utf8 on +set-option -g status-utf8 on + +# Scrollback/History limit +set -g history-limit 2048 + +# Index Start +set -g base-index 1 + +# Mouse +set-option -g mouse-select-pane on ### Keybinds -###################################################################### +########################################################################### # Unbind C-b as the default prefix -unbind-key C-befix C-a +unbind-key C-b + +# Set new default prefix +set-option -g prefix ` # Return to previous window when prefix is pressed twice bind-key C-a last-window @@ -129,12 +152,15 @@ bind-key ` last-window bind-key F11 set-option -g prefix C-a bind-key F12 set-option -g prefix ` -# Activate inner-most session (when nesting tmux) -# to send commands -bind-key a send-prefix +# Keybind preference +setw -g mode-keys vi +set-option -g status-keys vi -# Index Start -set -g base-index 1 +# Moving between panes with vim movement keys +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R # Window Cycle/Swap bind e previous-window @@ -142,23 +168,21 @@ bind f next-window bind E swap-window -t -1 bind F swap-window -t +1 -# easy-to-remember split pane commands -bind | split-window -h +# Easy split pane commands +bind = split-window -h bind - split-window -v unbind '"' unbind % -# moving between panes with vim movement keys -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R +# Activate inner-most session (when nesting tmux) to send commands +bind-key a send-prefix + ### Theme -##################################################################### +########################################################################### -# Statusbar Color Palette +# Statusbar Color Palatte set-option -g status-justify left set-option -g status-bg black set-option -g status-fg white @@ -187,14 +211,7 @@ setw -g window-status-activity-fg yellow ### UI -###################################################################### - -# Statusbar -set-option -g status-utf8 on - -# Keybind preference -setw -g mode-keys vi -set-option -g status-keys vi +########################################################################### # Notification setw -g monitor-activity on @@ -202,43 +219,14 @@ set -g visual-activity on set-option -g bell-action any set-option -g visual-bell off -# Mouse -setw -g mode-mouse on -set-option -g mouse-select-pane on -set -g mouse-resize-pane on -set -g mouse-select-window on - # Automatically set window titles set-option -g set-titles on - -# window number,program name,active (or not) -set-option -g set-titles-string '#H:#S.#I.#P #W #T' +set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not) # Statusbar Adjustments -set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]' -set -g status-interval 3 - -# Statusbar with right-aligned Date / Time -#set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]' +set -g status-left "#[fg=red] #H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]" # Show performance counters in statusbar # Requires https://github.com/thewtex/tmux-mem-cpu-load/ -#set -g status-right '#[fg=green]][#[fg=white] #(tmux-mem-cpu-load 5 4) #[fg=green]][ #[fg=yellow]%H:%M#[default]' - - -### Misc -###################################################################### - -# Scrollback/History limit -set -g history-limit 4096 - -bind r source-file ~/.tmux.conf -``` - -### External Resources - -Tmux | Home
-Tmux Manual page
-Archlinux Wiki
-Gentoo Wiki
-Display CPU/MEM % in statusbar
+#set -g status-interval 4 +#set -g status-right "#[fg=green]][ #[fg=white]#(tmux-mem-cpu-load) #[fg=green]][ #[fg=yellow]%H:%M #[default]" -- cgit v1.2.3 From a66c00c599dcea54f2095fb56343a7e8a200d9f1 Mon Sep 17 00:00:00 2001 From: Johnathan Maudlin Date: Tue, 7 Oct 2014 17:12:25 -0400 Subject: Correct Contributor's list & line spacing - Contributor's list had an improper character which ruined the formatting. - The Theme section was preceded by three line breaks rather than two. --- tmux.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index 1fe97699..79829c88 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -3,7 +3,7 @@ category: tool tool: tmux contributors: - ["kaernyk", "https://github.com/kaernyk"] - - ["jmaud". "https://github.com/jmaud"] + - ["jmaud", "https://github.com/jmaud"] filename: LearnTmux.txt --- @@ -113,6 +113,7 @@ then later reattached. tmux.conf can be used to set options automatically on start up, much like how .vimrc or init.el are used. + ``` # Example tmux.conf # 2014.10 @@ -178,7 +179,6 @@ unbind % bind-key a send-prefix - ### Theme ########################################################################### -- cgit v1.2.3 From 54835f209475cf6ace7fcd7fab8140ecedcec340 Mon Sep 17 00:00:00 2001 From: jmaud Date: Wed, 8 Oct 2014 21:23:20 -0400 Subject: Updates to tmux.conf Added reloading tmux configuration --- tmux.html.markdown | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index 79829c88..ebc312ed 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -135,23 +135,27 @@ set -g base-index 1 # Mouse set-option -g mouse-select-pane on +# Force reload of config file +unbind r +bind r source-file ~/.tmux.conf + ### Keybinds ########################################################################### # Unbind C-b as the default prefix -unbind-key C-b +unbind C-b # Set new default prefix set-option -g prefix ` # Return to previous window when prefix is pressed twice -bind-key C-a last-window -bind-key ` last-window +bind C-a last-window +bind ` last-window # Allow swapping C-a and ` using F11/F12 -bind-key F11 set-option -g prefix C-a -bind-key F12 set-option -g prefix ` +bind F11 set-option -g prefix C-a +bind F12 set-option -g prefix ` # Keybind preference setw -g mode-keys vi @@ -176,7 +180,7 @@ unbind '"' unbind % # Activate inner-most session (when nesting tmux) to send commands -bind-key a send-prefix +bind a send-prefix ### Theme @@ -224,9 +228,17 @@ 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) # 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]" # Show performance counters in statusbar # Requires https://github.com/thewtex/tmux-mem-cpu-load/ -#set -g status-interval 4 -#set -g status-right "#[fg=green]][ #[fg=white]#(tmux-mem-cpu-load) #[fg=green]][ #[fg=yellow]%H:%M #[default]" +set -g status-interval 4 +set -g status-right "#[fg=green] | #[fg=white]#(tmux-mem-cpu-load)#[fg=green] | #[fg=cyan]%H:%M #[default]" + +``` + +Tmux | Home
+Tmux Manual page
+Archlinux Wiki
+Gentoo Wiki
+Display CPU/MEM % in statusbar
-- cgit v1.2.3 From 583f874cdf54c46ccfb1ea0a9480bdbffa308927 Mon Sep 17 00:00:00 2001 From: pbaisla Date: Wed, 29 Oct 2014 23:44:36 +0530 Subject: [tmux/en] Fix URL names --- tmux.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index ebc312ed..de3a8341 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -239,6 +239,6 @@ set -g status-right "#[fg=green] | #[fg=white]#(tmux-mem-cpu-load)#[fg=green] | Tmux | Home
Tmux Manual page
-Archlinux Wiki
-Gentoo Wiki
+Gentoo Wiki
+Archlinux Wiki
Display CPU/MEM % in statusbar
-- cgit v1.2.3 From c309cc6e06647a9c1b6feae0082ebb5a86297453 Mon Sep 17 00:00:00 2001 From: jmaud Date: Fri, 31 Oct 2014 15:57:52 -0400 Subject: Correct contributors - Correct my github url/name - Remove kaernyk (converted account, now deleted) --- tmux.html.markdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index de3a8341..9eb96303 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -2,8 +2,7 @@ category: tool tool: tmux contributors: - - ["kaernyk", "https://github.com/kaernyk"] - - ["jmaud", "https://github.com/jmaud"] + - ["wzsk", "https://github.com/wzsk"] filename: LearnTmux.txt --- -- cgit v1.2.3 From ea9acc1b346fffcc820a79b585a5251cc74e857f Mon Sep 17 00:00:00 2001 From: Johnathan Maudlin Date: Mon, 19 Jan 2015 22:10:37 -0500 Subject: Update contributors --- tmux.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index 9eb96303..2ccb067a 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -2,7 +2,7 @@ category: tool tool: tmux contributors: - - ["wzsk", "https://github.com/wzsk"] + - ["mdln", "https://github.com/mdln"] filename: LearnTmux.txt --- -- cgit v1.2.3 From 4f480460967ab1444607d36ba7534cf2fdbb1ab4 Mon Sep 17 00:00:00 2001 From: Arnie97 Date: Sun, 19 Apr 2015 10:54:26 +0800 Subject: Update tmux.html.markdown --- tmux.html.markdown | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index 2ccb067a..700dce86 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -7,8 +7,7 @@ filename: LearnTmux.txt --- - -tmux is a terminal multiplexer: it enables a number of terminals +[tmux](http://tmux.sourceforge.net) 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. @@ -50,13 +49,15 @@ then later reattached. -a # Kill all sessions -a -t "#" # Kill all sessions but the target +``` -## Key Bindings +### Key Bindings -# The method of controlling an attached tmux session is via key -# combinations called 'Prefix' keys. +The method of controlling an attached tmux session is via key +combinations called 'Prefix' keys. +``` ---------------------------------------------------------------------- (C-b) = Ctrl + b # 'Prefix' combination required to use keybinds @@ -109,10 +110,9 @@ then later reattached. ### Configuring ~/.tmux.conf - tmux.conf can be used to set options automatically on start up, much +tmux.conf can be used to set options automatically on start up, much like how .vimrc or init.el are used. - ``` # Example tmux.conf # 2014.10 @@ -236,8 +236,15 @@ set -g status-right "#[fg=green] | #[fg=white]#(tmux-mem-cpu-load)#[fg=green] | ``` -Tmux | Home
-Tmux Manual page
-Gentoo Wiki
-Archlinux Wiki
-Display CPU/MEM % in statusbar
+ +### References + +[Tmux | Home](http://tmux.sourceforge.net) + +[Tmux Manual page](http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/tmux.1?query=tmux) + +[Gentoo Wiki](http://wiki.gentoo.org/wiki/Tmux) + +[Archlinux Wiki](https://wiki.archlinux.org/index.php/Tmux) + +[Display CPU/MEM % in statusbar](https://stackoverflow.com/questions/11558907/is-there-a-better-way-to-display-cpu-usage-in-tmux) -- cgit v1.2.3 From 9cc8e121052b90ee402d74ba02732b5aa85ccd42 Mon Sep 17 00:00:00 2001 From: Arnie97 Date: Sun, 19 Apr 2015 10:59:11 +0800 Subject: Update tmux.html.markdown --- tmux.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tmux.html.markdown') diff --git a/tmux.html.markdown b/tmux.html.markdown index 700dce86..c11da5fc 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -7,7 +7,8 @@ filename: LearnTmux.txt --- -[tmux](http://tmux.sourceforge.net) is a terminal multiplexer: it enables a number of terminals +[tmux](http://tmux.sourceforge.net) +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. -- cgit v1.2.3