Created
March 20, 2024 22:57
-
-
Save Thomashrb/3e14dd2b225adf016407ffa91c148a86 to your computer and use it in GitHub Desktop.
jump menu to other tmux session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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