Josh Medeski Memoji Josh Medeski

Menu

Smart tmux sessions with zoxide and fzf

Dotfiles

Update: I’ve created an official tmux plugin called to make it easy to set this up in your workflow. View “t - smart tmux session manager” tmux plugin


Create and manage tmux sessions automatically with a custom script that uses zoxide and fzf.

zoxide

brew install zoxide

View zoxide on GitHub

tmux

brew install tmux

View tmux on GitHub

abbr tn "tmux new -s (pwd | sed 's/.*\///g')"

You can turn off the detach-on-destroy option in your tmux.conf to allow tmux to switch to an existing session when you close the final window on a session.

set-option -g detach-on-destroy off

Update alacritty.yaml

This is the macOS binding I use (cmd+j) to open the session manager popup.

key_bindings:
  - { key: J, mods: Command, chars: "\x02\x54" }

Watch “macOS Keyboard Shortcuts for tmux” for more details.

Categories

These are a few of my favorite things.

Dotfiles

My developer environment

Development

How I build websites and apps

Desk Setup

The space that helps me create

Productivity

How I get things done

Personal Development

Creating a meaningful life

Stay up to date

Get updates on my latest content on web development, vim, macOS, working from home, productivity, and more.

Sign up to my newsletter