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

5 lines
153 B
Fish

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