Is it possible to configure tmux
so that when you want to switch to a window that doesn't exist, it creates the window and then switches (avoiding Ctrl-b c) ?
Tmux to create a window if it doesn’t exist yet
tmux
tmux
Is it possible to configure tmux
so that when you want to switch to a window that doesn't exist, it creates the window and then switches (avoiding Ctrl-b c) ?
Best Answer
Add this to
~/.tmux.conf
:This will first attempt to switch to window 0, and if that failed, create it.
Repeat for 1-9.