Skip to content

tmux and tmux-mem-cpu-load

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.

Terminal window
zinit for \
configure'--disable-utf8proc' \
make \
@tmux/tmux
Terminal window
zinit for \
cmake \
@thewtex/tmux-mem-cpu-load
Terminal window
zinit id-as for \
cmake \
@thewtex/tmux-mem-cpu-load \
configure'--disable-utf8proc' make \
@tmux/tmux
  • configure'--disable-utf8proc' — runs ./configure --prefix=$ZPFX --disable-utf8proc to build without the utf8proc library (avoids a common build dependency issue).
  • make — compiles and installs tmux to $ZPFX.
  • cmake — runs CMake to configure and build the project (installs to $ZPFX).
  • id-as — assigns the repository name as the plugin ID for each plugin in the combined for block.
  • Both plugins share one for statement, ensuring they are installed/updated together.

$ZPFX/bin is automatically on $PATH, so both binaries are available after installation.

Terminal window
# tmux only
zinit for \
configure'--disable-utf8proc' \
make \
@tmux/tmux
# tmux-mem-cpu-load only
zinit for \
cmake \
@thewtex/tmux-mem-cpu-load
# combined
zinit id-as for \
cmake \
@thewtex/tmux-mem-cpu-load \
configure'--disable-utf8proc' make \
@tmux/tmux