tmux and tmux-mem-cpu-load
Summary
Section titled “Summary”Builds tmux (terminal multiplexer) and optionally tmux-mem-cpu-load (a CPU/RAM/load monitor for the tmux status bar) from source using Zinit’s configure/make/cmake ices.
Syntax / Usage
Section titled “Syntax / Usage”tmux only
Section titled “tmux only”zinit for \ configure'--disable-utf8proc' \ make \ @tmux/tmuxtmux-mem-cpu-load only
Section titled “tmux-mem-cpu-load only”zinit for \ cmake \ @thewtex/tmux-mem-cpu-loadtmux + tmux-mem-cpu-load (combined)
Section titled “tmux + tmux-mem-cpu-load (combined)”zinit id-as for \ cmake \ @thewtex/tmux-mem-cpu-load \ configure'--disable-utf8proc' make \ @tmux/tmuxDetails
Section titled “Details”configure'--disable-utf8proc'— runs./configure --prefix=$ZPFX --disable-utf8procto build without the utf8proc library (avoids a common build dependency issue).make— compiles and installs tmux to$ZPFX.
tmux-mem-cpu-load
Section titled “tmux-mem-cpu-load”cmake— runs CMake to configure and build the project (installs to$ZPFX).
Combined recipe
Section titled “Combined recipe”id-as— assigns the repository name as the plugin ID for each plugin in the combinedforblock.- Both plugins share one
forstatement, ensuring they are installed/updated together.
$ZPFX/bin is automatically on $PATH, so both binaries are available after installation.
Examples
Section titled “Examples”# tmux onlyzinit for \ configure'--disable-utf8proc' \ make \ @tmux/tmux
# tmux-mem-cpu-load onlyzinit for \ cmake \ @thewtex/tmux-mem-cpu-load
# combinedzinit id-as for \ cmake \ @thewtex/tmux-mem-cpu-load \ configure'--disable-utf8proc' make \ @tmux/tmux