JRasmusBm / dotfiles

22 stars 1 forks source link

fix: delete the correct session #571

Closed JRasmusBm closed 1 year ago

JRasmusBm commented 1 year ago

Closes: #570

The list-panes command was just being fed with the name of the panes, which could be from any tmux-session, not the target.

Example:

$ tmux list-windows -F '#{window_name}' -t "witchcraft"
  \ | x -n 1 echo tmux list-panes -F '#{pane_pid}' -t
tmux list-panes -F #{pane_pid} -t run
tmux list-panes -F #{pane_pid} -t vim
tmux list-panes -F #{pane_pid} -t cli