Skip to content

Instantly share code, notes, and snippets.

@johnmaguire
Created March 28, 2023 03:47
Show Gist options
  • Save johnmaguire/beaca891cd93183c8b2080c007a268fe to your computer and use it in GitHub Desktop.
Save johnmaguire/beaca891cd93183c8b2080c007a268fe to your computer and use it in GitHub Desktop.
#!/bin/sh
tmux list-sessions -F '#S' \
| awk 'BEGIN {ORS=" "} {print $1, NR, "\"switch-client -t", $1 "\""}' \
| xargs tmux display-menu -T "Switch-session"
bind f run-shell "~/.config/tmux/session-menu.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment