Skip to content

Commit e574ecf

Browse files
committed
[docs] about tmux updates
1 parent c81db94 commit e574ecf

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

doc/about_tmux.rst

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,19 +499,13 @@ Short cut Action
499499
``"`` Split the current pane into two, top and bottom.
500500
=================== ====================================================
501501

502-
503-
504-
505502
Tmux configuration
506503
==================
507504

508505
Tmux can be configured via a configuration at ``~/.tmux.conf``.
509506

510507
Depending on your tmux version, there is different options available.
511508

512-
- Status lines
513-
- Short cuts
514-
515509
Vi 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

543559
Reference
544560
=========

0 commit comments

Comments
 (0)