-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
I frequently have a bunch of shpool sessions running, and I'd like to easily see the session I most recently used. Right now, there's no way to do that (STARTED_AT does not imply "last used").
I'm imagining something like this. You can ignore the tee/column commands as I'm just using them to sort and format the output. Note the three new options: one for each new column, and a third to control the date formatting so it's easier to sort.
$ shpool list \
--connected-at \
--disconnected-at \
--date-format '%Y-%m-%dT%H:%M:%S' |
tee >/dev/null >(head -n 1) >(tail -n +2 | sort -Vk4) |
column -t
NAME STARTED_AT CONNECTED_AT DISCONNECTED_AT STATUS
illegal-hacking 2025-12-08T14:51:28 2026-01-15T08:22:41 2026-01-15T12:08:19 disconnected
pr-review 2026-01-11T22:20:04 2026-01-18T10:30:15 2026-01-18T14:55:33 disconnected
claude-code 2025-12-29T15:59:47 2026-01-20T09:15:22 2026-01-20T17:42:08 disconnected
Will open a PR for this.
Metadata
Metadata
Assignees
Labels
No labels