If I want to send a command to a running pane in tmux I can do this:
tmux send -t foo ls ENTER
I figured I could do something like this to do the same but in a new pane:
tmux send ls ENTER
Is there an easy way to run in a pane?
tmux
If I want to send a command to a running pane in tmux I can do this:
tmux send -t foo ls ENTER
I figured I could do something like this to do the same but in a new pane:
tmux send ls ENTER
Is there an easy way to run in a pane?
Best Answer
It is easy to run a command in a new pane, simply:
The issue is that the window is destroyed once the command finishes. Therefore, "tmux new-window ls ENTER" makes no sense. In contrast, "tmux new-window top ENTER" or "tmux new-window watch ls ENTER" seem much more reasonable.