Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • Thank you. Do you know the approaches I have tried failed? man tmux says it should support fnmatch(3), and [!1] is a glob(7) matching anything but 1 Commented Mar 11, 2021 at 18:40
  • Is there any reason you append a “:” to sessions as in -t old:? Wouldn’t -t old work just as fine? Commented Mar 11, 2021 at 18:42
  • Do you have any ideas on how to automatically rename the new session like the old one? Indeed, I need a variable holding the old name for this to work. Commented Mar 11, 2021 at 18:44
  • Just because it could match more than one window does not mean that it will operate on more than one. AFAIK the target is always for one session/window/pane. Commented Mar 11, 2021 at 18:54
  • Do you know whether it is possible to save the session name in a variable during a key binding? Commented Mar 12, 2021 at 5:48