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 : opens the tmux command prompt for any tmux command

Tmux
~/tips/tip-tmux-command-prompt

Ctrl-b :

Lets you run any tmux command from inside tmux, without leaving the session.

Every tmux something command you can type in a shell also works inside tmux itself.

Ctrl-b :

A prompt opens in the status line. Type the command without the leading tmux, for example rename-window logs or setw synchronize-panes on, and press Enter.

It is the quickest way to try an option before you write it into the config file. Nothing is saved, so closing the session or restarting the server resets it.

Press Up in the prompt to get earlier commands back. Escape closes the prompt without running anything.

Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close it again with tmux kill-session -t scratch. Nothing else on your machine is touched.

Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official)

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