tmux Prefix L Previous Session

Switch to the previous tmux session with Prefix+L

What

Use tmux Prefix+L (uppercase L) to jump back to your previous session instantly—instead of opening the sessions list with Prefix+s and navigating with j/k.

Context

Steps / Snippet

# Inside tmux
# Jump to previous session (toggle):
# Press: PREFIX then L   # e.g., Ctrl+b then Shift+L

# Old way (for contrast):
# Press: PREFIX then s   # then j/k to select, Enter to attach

# Ensure the default binding exists (if your config overrides it):
tmux bind-key L switch-client -l

# Optional: also keep last-window on lowercase l
tmux bind-key l last-window

Pitfalls