---
title: "tmux last session"
description: "https://youtu.be/RB87EEnnMnU"
date: 2021-07-16
published: true
tags:
  - cli
  - linux
  - tmux
template: blog-post
---


[https://youtu.be/RB87EEnnMnU](https://youtu.be/RB87EEnnMnU){.youtube-embed}

An ultimate productivity key-binding in tmux is one to switch to the last session.  I use this to quickly get between sessions really quick.  Often I am working and need to lookup a quick note, or copy something into my notes, then get back to where I was quickly.

``` bash
bind -n M-b switch-client -l
```

I think of this hub and spoke model, and use `last-session` to quickly drive it.

![hub and spoke](https://images.waylonwalker.com/tmux-nav-hub-spoke.png)

<a href="/tmux-nav-2021/" class="wikilink" data-title="How I navigate tmux in 2021" data-description="change_speed = (speed) =&gt; [...document.querySelectorAll(&#39;video&#39;)].map(v =&gt; v.playbackRate=v.playbackRate+speed)" data-date="2021-05-11">How I navigate tmux in 2021</a>

> for more information on how I navigate tmux, check out this full post
