💾 Archived View for midnight.pub › replies › 8672 captured on 2024-08-31 at 15:00:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-18)

-=-=-=-=-=-=-

<

Parent

~inquiry

> 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.-)


)
  print('%' .. num .. x .. ' ' .. cmd)
end

then created these bash aliases:

alias f="jobs|jobs-filter"
alias j="jobs|jobs-filter"

(two, because I want to learn which I prefer over time... or maybe keep both...?)

so that, now, a simple 'f' or 'j' leads to the likes:

%1- digg  (wd: ~)
%3  usenet  (wd: ~/News)
%5+ mp
%6  weblist x
%7  gopher
%8  cl

which will help me remember I need to preface job numbers with '%' to foreground them.

> also, analog watches are the best, as is anything that
> doesn't have a processor

Sounds like *someone* needs a sun dial for their birthday....

Write a reply

Replies

~detritus wrote:

Sounds like *someone* needs a sun dial for their birthday....

Hey, I would actually love to have a sundial. As a matter of fact, I have long wanted to make one. I know it's not particularly hard, I just don't know how to work the materials I need to do it.

A sundial would look very nice out in my yard, it would help me give the whole place this sort of "stone-age" look that I would like it to have. I would be very pleased if my house looked like one from The Flinstones.

Thank you for the reminder that I need to go fetch some more rocks. I have been meaning to make a stone "igloo" of sorts, but I am afraid if I don't do it well it will end up collapsing.... with me and my wife inside.