HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
antonmedv
fx-completion
JavaScript2019–2019
antonmedv / fx-completion · Archived

fx-completion

Bash completion for fx

2Distinct people
2Mentions
0Explicit recommenders
166GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Bash completion for fx

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2019-03-01 01:40:37 UTC to 2019-03-01 07:30:54 UTC.

012019-03-01 01:00:00 UTC to 2019-03-01 02:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsMar 1, 01:002019-03-01 02:00:00 UTC to 2019-03-01 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-03-01 03:00:00 UTC to 2019-03-01 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-03-01 04:00:00 UTC to 2019-03-01 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMar 1, 04:002019-03-01 05:00:00 UTC to 2019-03-01 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-03-01 06:00:00 UTC to 2019-03-01 07:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-03-01 07:00:00 UTC to 2019-03-01 08:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 1, 07:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Mar 1, 01:002019-03-01 01:00:00 UTC2019-03-01 02:00:00 UTC110
Mar 1, 02:002019-03-01 02:00:00 UTC2019-03-01 03:00:00 UTC000
Mar 1, 03:002019-03-01 03:00:00 UTC2019-03-01 04:00:00 UTC000
Mar 1, 04:002019-03-01 04:00:00 UTC2019-03-01 05:00:00 UTC000
Mar 1, 05:002019-03-01 05:00:00 UTC2019-03-01 06:00:00 UTC000
Mar 1, 06:002019-03-01 06:00:00 UTC2019-03-01 07:00:00 UTC000
Mar 1, 07:002019-03-01 07:00:00 UTC2019-03-01 08:00:00 UTC101

What Hacker News says

2 sources
I was going to suggest that somebody try this in Oil shell, which can now run thousands of lines of bash completion scripts [1], but I can already see it won't work because of the VERSION DETECTION anti-pattern. https://github.com/antonmedv/fx-completion/blob/master/compl... if [[ -n "${BASH_VERSION}" ]]; then # ... else echo "Unsupported shell." exit 1 fi The better thing to do is FEATURE DETECTION, e.g. with 'eval'. Does anyone know of a concise resource for explaining feature vs. version detection? I don't find that many great resources on Google. Here's a page, which is OK but leaves a lot to be desired. https://en.wikipedia.org/wiki/Feature_detection_(web_develop... It feels like I need to write a blog post to explain this, since this knowledge seems to be waning. I recall reading about it 10+ years ago
Read the rest
, but not recently. Richard Stallman understood it very well and IIRC strongly advocated for feature detection in autoconf. (Despite all the bad things about autoconf, it does actually work on tons of platforms, and it's solving a hard problem. It wouldn't "scale" if it were using version detection.) Here's an outline of a blog post: 1. Version/browser detection is why the User-Agent string from Internet Explorer, Chrome, Safari, Edge, etc. all start with "Mozilla". Fun fact: if everyone used feature detection, we could have saved exabytes of data transfer over the last 20 years by trimming 10-50 bytes from every single HTTP request ever made. 2. jQuery switched from version detection to feature detection early in its life. I recall some threads where Resig was criticized for this, and then he saw the light. 3. Likewise, the LLVM toolchain has to pretend its GNU in some cases because applications are using version detection: https://news.ycombinator.com/item?id=15195370 4. Autoconf is based on feature detection. 5. My hand-written configure script also uses feature detection, e.g. to detect the presence of the readline library. It basically tries to compile a small program with the C compiler. There are various tricks in this domain. 6. eval is useful for feature detection in dynamic programming languages. In fact, this might be the ONLY thing eval is good for! (exaggerating a bit) [1] http://www.oilshell.org/blog/2019/02/05.html
In Bash Completion from JSON Fields

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.