File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed
Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -499,19 +499,13 @@ Short cut Action
499499``" `` Split the current pane into two, top and bottom.
500500=================== ====================================================
501501
502-
503-
504-
505502Tmux configuration
506503==================
507504
508505Tmux can be configured via a configuration at ``~/.tmux.conf ``.
509506
510507Depending on your tmux version, there is different options available.
511508
512- - Status lines
513- - Short cuts
514-
515509Vi copypaste
516510------------
517511
@@ -538,7 +532,29 @@ Reload config
538532
539533 bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
540534
535+ Status lines
536+ ------------
537+
538+ Tmux allows configuring a status line that displays system information,
539+ window list, and even pipe in the ``stdout `` of an application.
540+
541+ You can use `tmux-mem-cpu-load `_ to get stats (requires compilation) and
542+ `basic-cpu-and-memory.tmux `_. You can pipe in a bash command to a tmux
543+ status line like:
544+
545+ .. code-block :: ini
546+
547+ $(shell-command)
548+
549+ So if ``/usr/local/bin/tmux-mem-cpu-load `` outputs stats to
550+ ``stdout ``, then ``$(tmux-mem-cpu-load) `` is going to output the first
551+ line to the status line. The interval is determined by the
552+ ``status-interval ``::
553+
554+ set -g status-interval 1
541555
556+ .. _tmux-mem-cpu-load : https://github.com/thewtex/tmux-mem-cpu-load
557+ .. _basic-cpu-and-memory.tmux : https://github.com/zaiste/tmuxified/blob/master/scripts/basic-cpu-and-memory.tmux
542558
543559Reference
544560=========
You can’t perform that action at this time.
0 commit comments