> misc

Grab-bag of tmux commands that don't fit windows or panes: dropping into the command prompt, setting session/window options, and driving the config file. These are what you reach for when you're wiring up `.tmux.conf`, tuning scrollback, or scripting a running session from the outside.

// misc

9 commands

// faq

How do I reload my tmux config without restarting the server?

Run `tmux source-file ~/.tmux.conf` from a shell, or `:source-file ~/.tmux.conf` from inside tmux. This re-applies your config to the running server without killing sessions, but it only adds/overrides settings — options you deleted from the file stay in effect until the server restarts.

What's the difference between `set -g` and `setw -g`?

`set -g` (alias for `set-option -g`) sets session-scope options globally across all sessions; `setw -g` (alias for `set-window-option -g`) sets window-scope options globally across all windows. In modern tmux (3.x) plain `set -g` also handles window options since the tables were unified, but `setw` reads as explicit intent for per-window options like `mode-keys` or `automatic-rename`.

How do I send a command to a tmux pane from a script?

Use `tmux send-keys -t <target> 'your command' Enter`. The literal keyword `Enter` (not `\n`) is what actually submits the line; without it the text just sits at the prompt.