tmux: bind tmux-session-menu
This commit is contained in:
5
tmux/bin/tmux-session-menu
Executable file
5
tmux/bin/tmux-session-menu
Executable 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"
|
Reference in New Issue
Block a user