fzf_tmux.sh 244 B

123456789101112
  1. #!/bin/bash
  2. function tmux_sesh_wind() {
  3. for sesh in $(tmux list-sessions -F "#S"); do
  4. for win in $(tmux list-windows -t $sesh -F "#W"); do
  5. echo "$sesh:$win";
  6. done;
  7. done;
  8. }
  9. RET=$(tmux_sesh_wind | fzf)
  10. tmux switch-client -t $RET