💾 Archived View for midnight.pub › replies › 8671 captured on 2024-08-31 at 14:59:40. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-08-18)
-=-=-=-=-=-=-
maybe try `jobs | head -n -1`
also, analog watches are the best, as is anything that doesn't have a processor
> maybe try `jobs | head -n -1`
Thanks.
Actually, I gave up on setting PROMPT_COMMAND as I soon realized I don't want to be seeing a jobs list before every bash prompt because it becomes cumbersome in and around simple commands that aren't "apps", so to speak, e.g. "date", "ls", etc.
So I wrote this Lua script currently called 'jobs-filter' to present "jobs" output more to my liking:
#! /usr/bin/env lua for line in io.stdin:lines() do local num,x,cmd = string.match(line, '^%[(.-)%](.)%s+%S+%s-(%S.-)