Let's say I am using a tmux window with 4 panes (like the example in this question. Now I change some environment variable and I want the new value to be recognized in all 4 panes. Is there a simple way to respawn all 4 panes with one command?
I know that :respawn-pane -k
works for any one pane, but it's tiresome to have to enter it 4 times. I also tried respawn-window
, but that left me with a single new pane (it killed my 4-pane view).
Thanks
:respawn-pane
though, so maybe the solution lies along that path. My solution ended up being a change fromzsh
tofish
(for this and other reasons).fish
has "universal variables" which take effect in all open shells when set/changed. – NotTheDr01ds May 13 '21 at 17:40