I have a tmux window that I've open with a certain command. Is it possible to split that window with a new pane which also runs the same command, not the default command? The point is to avoid having to remember and type the original command again.
With tmux 1.7 you can use something like this in your
The command your are looking for is
split-window [-dhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane] [shell-command] [-F format] (alias: splitw)
You could use it from your current window by entering command mode, Ctrlb,: and entering at the prompt:
This would split your current window vertically in half (50 percent) with your command executed in it.
If you use this command frequently, you can always bind it to a key sequence, eg.,