Skip to content

Instantly share code, notes, and snippets.

@Thomashrb
Created March 20, 2024 22:57
Show Gist options
  • Save Thomashrb/3e14dd2b225adf016407ffa91c148a86 to your computer and use it in GitHub Desktop.
Save Thomashrb/3e14dd2b225adf016407ffa91c148a86 to your computer and use it in GitHub Desktop.
jump menu to other tmux session
# https://waylonwalker.com/tmux-fzf-session-jump/
bind-key -n M-z display-popup -E "\
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
sed '/^$/d' |\
fzf --reverse --header jump-to-session --preview 'tmux capture-pane -pt {}' |\
xargs tmux switch-client -t"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment