← Back to context

Comment by hugodan

17 hours ago

I would love to have a way to switch sessions easily, like with panes where I just click or have more shortcuts available

i just have a little script called session (invoked as session namespace name and mapping to a tmux session called namespace/name and searching all namespaces if the namespace is elided) that just does the right tmux invocation for the various intersecting cases of [in or not in a tmux session already, target session does or does not exist] which also has the side benefit of leaving shell history breadcrumbs i can follow between sessions later if needed

People have developed plugins for this. Check out “sesh” for instance.

Switching between sessions with fuzzy finding, and creating new ones when needed, is a wonderful feature.