# list of tmux sessions export def sessions []: [ nothing -> table >> ] { tmux list-sessions -F "#{session_name}\t#{session_id}\t#{session_windows}\t#{session_attached}\t#{session_attached_list}" | from tsv --noheaders | rename name id windows attached attached_list | update attached_list { split row , } }