dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

fzf-move-to.tmux (707B)


      1 #!/bin/sh
      2 
      3 sessions="$(tmux list-sessions)"
      4 
      5 printf '%s\n' "$sessions"                                                   \
      6 	| fzf-tmux                                                              \
      7 		-d 35%                                                              \
      8 		--exit-0                                                            \
      9 		--cycle                                                             \
     10 		--reverse                                                           \
     11 		--no-preview                                                        \
     12 	| sed -r 's/^([^:]*:).*/\1/g'                                           \
     13 	| xargs -i sh -c 'tmux move-window -t {}99 && tmux move-window -r -t {}'