brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Ctrl-b C opens a menu of every tmux option and key binding

Tmux
~/tips/tip-tmux-customize-mode

Ctrl-b C

Lets you browse and change tmux options without the man page.

There are a lot of tmux options, and nobody remembers their exact names. Since tmux 3.2 there is a browsable list.

Ctrl-b C

This opens customize-mode: a tree of server, session, window and pane options plus all key tables, each with its current value. Expand an item with +, collapse it with -, and search by name with Ctrl-s.

You can also change things right there. s sets a new value, d resets an option to its default, and u unsets it. For key bindings, u removes the binding.

To limit the list, start it with a filter:

tmux customize-mode -f '#{m:*status*,#{option_name}}'

That shows only options with “status” in their name, handy when you are styling the status bar.

Changes made here go to the running server only. Nothing is written to your config file, so after a restart they are gone. I’d use it to try values, then copy the ones you like into the config by hand. Press q to leave.

Further reading: tmux manual page (OpenBSD)

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link