tmux: bind tmux-session-menu

This commit is contained in:
2025-04-04 02:19:07 +02:00
parent 29608ff8c4
commit d6ba2a78b9
2 changed files with 8 additions and 1 deletions

5
tmux/bin/tmux-session-menu Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
tmux list-sessions -F '#S' \
| awk 'BEGIN {ORS=" "; print "toggle t \"switch-client -l\""} {print $1, NR, "\"switch-client -t", $1 "\""}' \
| xargs tmux display-menu -T "Switch session"