Search code examples
tmux

How to send a tmux configuration command externally (from bash)


In tmux, how can I set the configuration command setw synchronize-panes off externally (from bash).

I tried, tmux send-keys -t 1 setw synchronize-panes off enter, but it didn't work (it sends the command to the shell).


Solution

  • just prepend the command with tmux.

    tmux setw synchronize-panes off
    

    send keys is a way for tmux to run bash commands (so I could set a particular command to run in a particular pane when I do something in tmux using send-keys). It is not a way to interact with tmux configs.