You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
465 B
Plaintext
16 lines
465 B
Plaintext
# list of tmux sessions
|
|
export def sessions []: [
|
|
nothing -> table<record<
|
|
name: string
|
|
id: string
|
|
attached: number
|
|
windows: number
|
|
attached_list: list<string>
|
|
>>
|
|
] {
|
|
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 , }
|
|
}
|