dotfiles/modules/programs/tmux/tmux-attach/script.fish

5 lines
143 B
Fish

set selected (tmux list-sessions -F '#{session_name}' 2>/dev/null | fzf $argv)
if not test -n "$selected"
exit 1
end
tmux-switch "$selected"